53 #if defined(__GNUC__) && __GNUC__ >= 4
60 return 31 - __builtin_clz(x);
66 const Uint32 b[] = {0x2, 0xC, 0xF0, 0xFF00, 0xFFFF0000};
67 const int S[] = {1, 2, 4, 8, 16};
76 for (i = 4; i >= 0; i--)
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:155
SDL_FORCE_INLINE int SDL_MostSignificantBitIndex32(Uint32 x)
Definition: SDL_bits.h:51