mirror of
https://github.com/nothings/stb
synced 2024-12-15 12:22:55 +03:00
Merge branch 'master' of https://github.com/r-lyeh/stb into working
Conflicts: stb.h
This commit is contained in:
commit
a96eb04795
2
stb.h
2
stb.h
@ -1422,7 +1422,7 @@ int stb_is_pow2(unsigned int n)
|
|||||||
int stb_log2_floor(unsigned int n)
|
int stb_log2_floor(unsigned int n)
|
||||||
{
|
{
|
||||||
#if _MSC_VER > 1700
|
#if _MSC_VER > 1700
|
||||||
DWORD i;
|
unsigned int i;
|
||||||
_BitScanReverse(&i, n);
|
_BitScanReverse(&i, n);
|
||||||
return i != 0 ? i : -1;
|
return i != 0 ? i : -1;
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user