summaryrefslogtreecommitdiff
path: root/bit-radix.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-06-07 22:12:21 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-06-07 22:12:21 -0400
commit84e9d08a4bd72f106c1d97823c76410ae5076420 (patch)
tree29bd205a58a896dbeab9337ed287ef224eb636c9 /bit-radix.c
parent9b25940b9d4e73c4d66461018536dfba97c1e212 (diff)
endian fixes, makefile fixes
Diffstat (limited to 'bit-radix.c')
-rw-r--r--bit-radix.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/bit-radix.c b/bit-radix.c
index 7da97ce7..cd9928a3 100644
--- a/bit-radix.c
+++ b/bit-radix.c
@@ -86,12 +86,10 @@ static unsigned long __ffs(unsigned long word)
{
int num = 0;
-#if BITS_PER_LONG == 64
- if ((word & 0xffffffff) == 0) {
+ if (sizeof(long) == 8 && (word & 0xffffffff) == 0) {
num += 32;
word >>= 32;
}
-#endif
if ((word & 0xffff) == 0) {
num += 16;
word >>= 16;