From: H. Peter Anvin Date: Wed, 11 Sep 2013 03:16:17 +0000 (-0400) Subject: random: statically compute poolbitshift, poolbytes, poolbits X-Git-Tag: v3.13-rc1~61^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ed17b70b409dc48c134a80b5a6df582ba759de2;p=pandora-kernel.git random: statically compute poolbitshift, poolbytes, poolbits Use a macro to statically compute poolbitshift (will be used in a subsequent patch), poolbytes, and poolbits. On virtually all architectures the cost of a memory load with an offset is the same as the one of a memory load. It is still possible for this to generate worse code since the C compiler doesn't know the fixed relationship between these fields, but that is somewhat unlikely. Signed-off-by: H. Peter Anvin Signed-off-by: Theodore Ts'o --- Reading git-diff-tree failed