X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Fcompiler.h;h=6bce5d0152e11742905461df5d1b6fcc1b71411d;hp=9f53e192fc52796e2837c016a2f20b479e05d1cf;hb=8618172276fae088f311923a61bbf26c3d4d8941;hpb=3ceffe51aa820d5e804d859935bf34584be08fe2 diff --git a/include/wimlib/compiler.h b/include/wimlib/compiler.h index 9f53e192..6bce5d01 100644 --- a/include/wimlib/compiler.h +++ b/include/wimlib/compiler.h @@ -171,10 +171,10 @@ #endif /* (Optional) Find Last Set bit and Find First Set bit macros. */ -#define compiler_fls32(n) (31 - __builtin_clz(n)) -#define compiler_fls64(n) (63 - __builtin_clzll(n)) -#define compiler_ffs32(n) __builtin_ctz(n) -#define compiler_ffs64(n) __builtin_ctzll(n) +#define compiler_bsr32(n) (31 - __builtin_clz(n)) +#define compiler_bsr64(n) (63 - __builtin_clzll(n)) +#define compiler_bsf32(n) __builtin_ctz(n) +#define compiler_bsf64(n) __builtin_ctzll(n) /* Optional definitions for checking with 'sparse'. */ #ifdef __CHECKER__