This website works better with JavaScript.
Home
Explore
Help
Sign In
Archivist
/
raylib-src
mirror of
https://github.com/raysan5/raylib
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
24
Wiki
Activity
Browse Source
update sinfl_bsr
pull/4807/head
Rico P
4 days ago
committed by
GitHub
parent
539c45ee23
commit
e7872a700d
No known key found for this signature in database
GPG Key ID:
B5690EEEBB952194
1 changed files
with
4 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-3
src/external/sinfl.h
+ 4
- 3
src/external/sinfl.h
View File
@ -171,9 +171,10 @@ extern int zsinflate(void *out, int cap, const void *in, int size);
static
int
sinfl_bsr
(
unsigned
n
)
{
#
if defined(_MSC_VER) && !defined(__clang__)
_BitScanReverse
(
&
n
,
n
)
;
return
n
;
#
ifdef _MSC_VER
unsigned
long
r
=
0
;
_BitScanReverse
(
&
r
,
n
)
;
return
int
(
r
)
;
#
else
/
/
defined(__GNUC__) || defined(__clang__) || defined(__TINYC__)
return
31
-
__builtin_clz
(
n
)
;
#
endif
Write
Preview
Loading…
Cancel
Save