SDL3pp
A slim C++ wrapper for SDL3
Toggle main menu visibility
Loading...
Searching...
No Matches
SDL3pp
SDL3pp_bits.h
1
#ifndef SDL3PP_BITS_H_
2
#define SDL3PP_BITS_H_
3
4
#include <SDL3/SDL_bits.h>
5
6
namespace
SDL
{
7
15
33
inline
int
MostSignificantBitIndex32
(
Uint32
x)
34
{
35
return
SDL_MostSignificantBitIndex32(x);
36
}
37
56
inline
bool
HasExactlyOneBitSet32
(
Uint32
x)
57
{
58
return
SDL_HasExactlyOneBitSet32(x);
59
}
60
62
63
}
// namespace SDL
64
65
#endif
/* SDL3PP_BITS_H_ */
SDL::MostSignificantBitIndex32
int MostSignificantBitIndex32(Uint32 x)
Get the index of the most significant (set) bit in a 32-bit number.
Definition
SDL3pp_bits.h:33
SDL::HasExactlyOneBitSet32
bool HasExactlyOneBitSet32(Uint32 x)
Determine if a unsigned 32-bit value has exactly one bit set.
Definition
SDL3pp_bits.h:56
SDL::Uint32
::Uint32 Uint32
An unsigned 32-bit integer type.
Definition
SDL3pp_stdinc.h:296
SDL
Main include header for the SDL3pp library.
Generated by
1.17.0