diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-11-27 09:40:03 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-11-27 09:40:03 -0500 |
commit | cac24ffa13dc969244fb171b9aad565311c69f16 (patch) | |
tree | 45d8f353a5b0968ea0ea9eecc297b11749c117b6 /util.c | |
parent | 370b74e5335745ea01fc7bb6d5425360d26ca0ce (diff) |
scrolling working
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,11 +3,11 @@ #include "base.h" -static uint util_popcount(u64 x) { +static u32 util_popcount(u64 x) { #ifdef __GNUC__ - return (uint)__builtin_popcountll(x); + return (u32)__builtin_popcountll(x); #else - uint count = 0; + u32 count = 0; while (x) { x &= x-1; ++count; |