From e450f6efc39e55e32264d2daded6c757af0f7527 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 13 Mar 2017 10:31:14 +0000 Subject: Cleanups - mostly removing superfluous includes in headers --- src/libstddjb/bitarray_count.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/libstddjb/bitarray_count.c') diff --git a/src/libstddjb/bitarray_count.c b/src/libstddjb/bitarray_count.c index 8f4ab50..19ed09e 100644 --- a/src/libstddjb/bitarray_count.c +++ b/src/libstddjb/bitarray_count.c @@ -1,7 +1,6 @@ /* ISC license. */ #include -#include #include #define B0(n) n, n+1, n+1, n+2 @@ -9,11 +8,11 @@ #define B2(n) B1(n), B1(n+1), B1(n+1), B1(n+2) #define B3(n) B2(n), B2(n+1), B2(n+1), B2(n+2) -uint64_t bitarray_countones (unsigned char const *c, size_t n) +size_t bitarray_countones (unsigned char const *c, size_t n) { static unsigned char const table[256] = { B3(0) } ; size_t len = bitarray_div8(n) ; - uint64_t total = 0 ; + size_t total = 0 ; size_t i = 0 ; if (n & 7) len-- ; for (; i < len ; i++) total += table[c[i]] ; -- cgit v1.2.3