[Linux] __builtin_ffsll instead of GNU/BSD-specific ffsll
This commit is contained in:
parent
e49e26e4a0
commit
2d50fc07b4
|
@ -242,7 +242,7 @@ inline bool bit_scan_forward(uint32_t v, uint32_t* out_first_set_index) {
|
|||
return i != 0;
|
||||
}
|
||||
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;
|
||||
return i != 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue