mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 17:28:28 +00:00
Fixed bug 3791 - SDL_bits.h: __builtin_clz is supported in gcc >= 3.4
Ozkan Sezer __builtin_clz is supported in gcc >= 3.4. The following patchlet adjusts SDL_bits.h for it.
This commit is contained in:
parent
6c38c9007b
commit
ff76f8e5b4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue