| 15 | #else |
| 16 | |
| 17 | static inline int _BitScanReverse(unsigned long* const Index, const unsigned long Mask) |
| 18 | { |
| 19 | if (Mask == 0) |
| 20 | return 0; |
| 21 | |
| 22 | // For some reason, clang won't emit bsr if we use std::countl_zeros()... |
| 23 | *Index = 31 - __builtin_clz(Mask); |
| 24 | return 1; |
| 25 | } |
| 26 | |
| 27 | #endif |
| 28 |
no outgoing calls
no test coverage detected