Don't use __builtin_clz() on gcc2. (thanks, Axel!)

Fixes Bugzilla #1771.
This commit is contained in:
Ryan C. Gordon
2013-03-29 21:16:30 -04:00
parent a9eb1f14ea
commit cf94d2de94

View File

@@ -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
*/