X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/f9d42b20477523bf2ab2172d51e78d2a398e117f..05b75f8d50b83e943af3be4071449304d82dbdcd:/lib/bits.c diff --git a/lib/bits.c b/lib/bits.c index d570e64..4ed2402 100644 --- a/lib/bits.c +++ b/lib/bits.c @@ -22,13 +22,13 @@ * @brief Bit operations */ -#include -#include "types.h" +#include "common.h" #include #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 +69,7 @@ int leftmost_bit(uint32_t n) { */ return x - 1; } - +#endif /* Local Variables: