chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
more template work
[disorder]
/
lib
/
bits.c
diff --git
a/lib/bits.c
b/lib/bits.c
index d570e6407da875e2781b2c03dced9784634c7bec..6b5273b5d4fd6e5ef33304b6ea815f348825f40a 100644
(file)
--- a/
lib/bits.c
+++ b/
lib/bits.c
@@
-29,6
+29,7
@@
#include "bits.h"
+#if !HAVE_FLS
/** @brief Compute index of leftmost 1 bit
* @param n Integer
* @return Index of leftmost 1 bit or -1
@@
-69,7
+70,7
@@
int leftmost_bit(uint32_t n) {
*/
return x - 1;
}
-
+#endif
/*
Local Variables: