Skip to content

Commit

Permalink
Fixed bug 3791 - SDL_bits.h: __builtin_clz is supported in gcc >= 3.4
Browse files Browse the repository at this point in the history
Ozkan Sezer

__builtin_clz is supported in gcc >= 3.4. The following patchlet adjusts
SDL_bits.h for it.
  • Loading branch information
slouken committed Aug 31, 2017
1 parent 6c38c90 commit ff76f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/SDL_bits.h
Expand Up @@ -60,7 +60,7 @@ extern _inline int _SDL_clz_watcom (Uint32);
SDL_FORCE_INLINE int
SDL_MostSignificantBitIndex32(Uint32 x)
{
#if defined(__GNUC__) && __GNUC__ >= 4
#if defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 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 ff76f8e

Please sign in to comment.