summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-03-25 12:08:01 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-25 17:22:58 +0100
commit962749af67b145c57917bfbff3c303ebd7d5988c (patch)
treece454f8a1cb0beb89c875a11d31426a4b44ca0ba /crypto
parent[PATCH] No need to protect current->group_info in sys_getgroups(), in_group_p... (diff)
downloadlinux-962749af67b145c57917bfbff3c303ebd7d5988c.tar.xz
linux-962749af67b145c57917bfbff3c303ebd7d5988c.zip
[PATCH] roundup_pow_of_two() 64-bit fix
fls() takes an integer, so roundup_pow_of_two() is busted for ulongs larger than 2^32-1. Fix this by implementing and using fls_long(). (Why does roundup_pow_of_two() return a long?) (Why is roundup_pow_of_two() __attribute_const__ whereas long_log2() is __attribute_pure__?) (Why does long_log2() suck so much? Because we were missing fls_long()?) Cc: Roland Dreier <rdreier@cisco.com> Cc: "Chen, Kenneth W" <kenneth.w.chen@intel.com> Cc: John Hawkes <hawkes@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions