mirror of
https://github.com/yawut/SDL.git
synced 2026-09-14 20:16:32 -05:00
Don't use __builtin_clz() on gcc2. (thanks, Axel!)
Fixes Bugzilla #1771.
This commit is contained in:
@@ -52,7 +52,7 @@ extern "C" {
|
||||
SDL_FORCE_INLINE Sint8
|
||||
SDL_MostSignificantBitIndex32(Uint32 x)
|
||||
{
|
||||
#if defined(__GNUC__)
|
||||
#if defined(__GNUC__) && __GNUC__ >= 4
|
||||
/* Count Leading Zeroes builtin in GCC.
|
||||
* http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user