diff options
author | lloyd <[email protected]> | 2008-09-05 14:57:07 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-05 14:57:07 +0000 |
commit | 3f281d2969cfa5971d2e7833c24ac63b246745a1 (patch) | |
tree | 2ce4bb7afbfb130155f7e1e1821b95b513d71012 /include | |
parent | b3f36983110046a97093ce6b5e90565aaa369e6f (diff) |
Change return type of ctz from int to u32bit
Diffstat (limited to 'include')
-rw-r--r-- | include/bit_ops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bit_ops.h b/include/bit_ops.h index ca6fb7d5d..06f47a14c 100644 --- a/include/bit_ops.h +++ b/include/bit_ops.h @@ -74,7 +74,7 @@ inline u32bit hamming_weight(T n) * Count the trailing zero bits in n * *************************************************/ template<typename T> -inline int ctz(T n) +inline u32bit ctz(T n) { for(int i = 0; i != 8*sizeof(T); ++i) if((n >> i) & 0x01) |