int SDL_MostSignificantBitIndex32(Uint32 x)
#include "SDL_bits.h" if (bitmask) { int index = SDL_MostSignificantBitIndex32(bitmask); }