Browse Source

Use builtin_clz for clang on windows (#3939)

pull/3942/head
OetkenPurveyorOfCode 1 year ago
committed by GitHub
parent
commit
f78721991f
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

@ -171,7 +171,7 @@ extern int zsinflate(void *out, int cap, const void *in, int size);
static int
sinfl_bsr(unsigned n) {
#ifdef _MSC_VER
#if defined(_MSC_VER) && !defined(__clang__)
_BitScanReverse(&n, n);
return n;
#elif defined(__GNUC__) || defined(__clang__)

||||||
x
 
000:0
Loading…
Cancel
Save