diff options
author | Emil Velikov <[email protected]> | 2017-03-09 17:45:19 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-03-13 11:16:34 +0000 |
commit | a72ac981605d34be5b9da3d9ee8e43b81c5a5296 (patch) | |
tree | c44fb29a3e3f14ffa565d25ccdf7e959a4b2719c /src/util/bitscan.c | |
parent | fb0832b86db07421d525ddd9633d247b70b897f9 (diff) |
util/bitscan: use correct signature for ffs/ffsll
Otherwise we'll get errors such as
error: conflicting types for ‘ffs’
error: conflicting types for ‘ffsll’
We might want to improve the heuristics and provide a definition only
when a native one is missing. We can address that at a later stage.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/util/bitscan.c')
-rw-r--r-- | src/util/bitscan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/bitscan.c b/src/util/bitscan.c index ceca59eba98..7858291bf63 100644 --- a/src/util/bitscan.c +++ b/src/util/bitscan.c @@ -32,7 +32,7 @@ #elif defined(_MSC_VER) && (_M_IX86 || _M_ARM || _M_AMD64 || _M_IA64) #else int -ffs(unsigned i) +ffs(int i) { int bit = 0; if (!i) @@ -63,7 +63,7 @@ ffs(unsigned i) #elif defined(_MSC_VER) && (_M_AMD64 || _M_ARM || _M_IA64) #else int -ffsll(uint64_t val) +ffsll(long long int val) { int bit; |