[Linux] __builtin_ffsll instead of GNU/BSD-specific ffsll

This commit is contained in:
Triang3l 2021-05-17 02:38:51 +03:00
parent e49e26e4a0
commit 2d50fc07b4
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ inline bool bit_scan_forward(uint32_t v, uint32_t* out_first_set_index) {
return i != 0; return i != 0;
} }
inline bool bit_scan_forward(uint64_t v, uint32_t* out_first_set_index) { inline bool bit_scan_forward(uint64_t v, uint32_t* out_first_set_index) {
int i = ffsll(v); int i = __builtin_ffsll(v);
*out_first_set_index = i - 1; *out_first_set_index = i - 1;
return i != 0; return i != 0;
} }