4#include <SDL3/SDL_bits.h>
5#include "SDL3pp_stdinc.h"
37 return SDL_MostSignificantBitIndex32(x);
60 return SDL_HasExactlyOneBitSet32(x);
constexpr int MostSignificantBitIndex32(Uint32 x)
Get the index of the most significant (set) bit in a 32-bit number.
Definition SDL3pp_bits.h:35
constexpr bool HasExactlyOneBitSet32(Uint32 x)
Determine if a unsigned 32-bit value has exactly one bit set.
Definition SDL3pp_bits.h:58
the main namespace where all SDL3pp public functions and types live
Definition SDL3pp_assert.h:7