Re: [PATCH] amd64_edac: fix size decoding error on K8

From: Tony Luck
Date: Wed Nov 09 2011 - 15:50:42 EST


On Wed, Nov 9, 2011 at 12:35 PM, Borislav Petkov <bp@xxxxxxxxx> wrote:
> +               diff = cs_mode / 3 + (unsigned)(cs_mode > 5);
> +
> +               return 32 << (cs_mode - diff);

Code is correct - but looks like an entry for an obfuscated C
competition. Perhaps
it deserves a comment!

-Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/