mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-19 19:28:28 +00:00
_BitScanReverse was introduced in Microsoft Visual Studio 2005
This commit is contained in:
parent
a78104a47f
commit
c8f3f1b461
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ SDL_FORCE_INLINE int SDL_MostSignificantBitIndex32(Uint32 x)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return _SDL_bsr_watcom(x);
|
return _SDL_bsr_watcom(x);
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER) && _MSC_VER >= 1400
|
||||||
unsigned long index;
|
unsigned long index;
|
||||||
if (_BitScanReverse(&index, x)) {
|
if (_BitScanReverse(&index, x)) {
|
||||||
return (int)index;
|
return (int)index;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue