chiark / gitweb /
document new choose screen properly
[disorder] / lib / bits.c
index d570e6407da875e2781b2c03dced9784634c7bec..6b5273b5d4fd6e5ef33304b6ea815f348825f40a 100644 (file)
@@ -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: