From 3f281d2969cfa5971d2e7833c24ac63b246745a1 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 5 Sep 2008 14:57:07 +0000 Subject: Change return type of ctz from int to u32bit --- include/bit_ops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 -inline int ctz(T n) +inline u32bit ctz(T n) { for(int i = 0; i != 8*sizeof(T); ++i) if((n >> i) & 0x01) -- cgit v1.2.3