[PATCH, RFC 02/12] random: Statically compute poolbitshift, poolbytes, poolbits

2013-09-22 Thread Theodore Ts'o
From: "H. Peter Anvin" 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

[PATCH, RFC 02/12] random: Statically compute poolbitshift, poolbytes, poolbits

2013-09-22 Thread Theodore Ts'o
From: H. Peter Anvin h...@linux.intel.com 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