GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
bit_utils.h File Reference
#include <inttypes.h>
#include <stdint.h>
#include <type_traits>
Include dependency graph for bit_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  draco

Functions

int draco::CountOneBits32 (uint32_t n)
uint32_t draco::ReverseBits32 (uint32_t n)
void draco::CopyBits32 (uint32_t *dst, int dst_offset, uint32_t src, int src_offset, int nbits)
int draco::MostSignificantBit (uint32_t n)
void draco::ConvertSignedIntsToSymbols (const int32_t *in, int in_values, uint32_t *out)
void draco::ConvertSymbolsToSignedInts (const uint32_t *in, int in_values, int32_t *out)
template<class IntTypeT>
std::make_unsigned< IntTypeT >::type draco::ConvertSignedIntToSymbol (IntTypeT val)
template<class IntTypeT>
std::make_signed< IntTypeT >::type draco::ConvertSymbolToSignedInt (IntTypeT val)