commit | 0917444531866c9facb0f731eff5e4e28c7c65d3 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Mon Jun 02 09:57:41 2008 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Mon Jun 02 09:57:41 2008 +0200 |
tree | 673917f37219ea0635f227b01daf8dff6bf3d8e1 | |
parent | 3e3357b1a54ca27c4b1f5e9564eee73f510e164f [diff] |
Be sure to use internal __ffs, not glibc variant Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/lib/ffz.h b/lib/ffz.h index 4324f5a..e17a2e9 100644 --- a/lib/ffz.h +++ b/lib/ffz.h
@@ -3,7 +3,7 @@ static inline int __ffs(int word) { - int r = 1; + int r = 0; if (!(word & 0xffff)) { word >>= 16; @@ -31,7 +31,7 @@ static inline int ffz(unsigned int bitmask) { - return ffs(~bitmask) - 1; + return __ffs(~bitmask); } #endif