In unix_io.c, rename fls() since some systems may already define it in
a system header file to fix a portability problem on MacOS. The name
"find_last_bit_set" is a bit more self-descriptive anyway.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
#include "ext2fs.h"
#include "ext2fsP.h"
-static inline int fls(int x)
+static inline int find_last_bit_set(int x)
{
int r = 32;
/* Get high bit set out of 32-bit argument, -1 if none set */
static inline int highbit32(uint32_t v)
{
- return fls(v) - 1;
+ return find_last_bit_set(v) - 1;
}
/*