Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Don't use __builtin_clz() on gcc2. (thanks, Axel!)
Browse files Browse the repository at this point in the history
 Fixes Bugzilla #1771.
  • Loading branch information
icculus committed Mar 30, 2013
1 parent bac7510 commit 3acf176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/SDL_bits.h
Expand Up @@ -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
*/
Expand Down

0 comments on commit 3acf176

Please sign in to comment.