World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Функции | |
_inline int | _SDL_clz_watcom (Uint32) |
SDL_FORCE_INLINE int | SDL_MostSignificantBitIndex32 (Uint32 x) |
SDL_FORCE_INLINE SDL_bool | SDL_HasExactlyOneBitSet32 (Uint32 x) |
Functions for fiddling with bits and bitmasks.
См. определение в файле SDL_bits.h
_inline int _SDL_clz_watcom | ( | Uint32 | ) |
Get the index of the most significant bit. Result is undefined when called with 0. This operation can also be stated as "count leading zeroes" and "log base 2".
Используется в SDL_MostSignificantBitIndex32().
SDL_FORCE_INLINE int SDL_MostSignificantBitIndex32 | ( | Uint32 | x | ) |