diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2013-09-11 07:16:17 +0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-10-10 22:32:13 +0400 |
commit | 9ed17b70b409dc48c134a80b5a6df582ba759de2 (patch) | |
tree | 5e1efaa318847e95e46c46d5ea800c50e253c865 /scripts | |
parent | 85a1f77716cf546d9b9c42e2848b5712f51ba1ee (diff) | |
download | linux-9ed17b70b409dc48c134a80b5a6df582ba759de2.tar.xz |
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 <hpa@linux.intel.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions