Browse Source

sinfl_bsr fix for TCC

pull/4807/head
Rico P 1 week ago
committed by GitHub
parent
commit
539c45ee23
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/external/sinfl.h

+ 1
- 1
src/external/sinfl.h View File

@ -174,7 +174,7 @@ sinfl_bsr(unsigned n) {
#if defined(_MSC_VER) && !defined(__clang__)
_BitScanReverse(&n, n);
return n;
#elif defined(__GNUC__) || defined(__clang__)
#else // defined(__GNUC__) || defined(__clang__) || defined(__TINYC__)
return 31 - __builtin_clz(n);
#endif
}

Loading…
Cancel
Save