|
template<typename T > |
bool | IsPowerOf2 (T x) |
|
int | WhichPowerOf2 (uint32_t x) |
|
int | MostSignificantBit (uint32_t x) |
|
int | ArithmeticShiftRight (int x, int s) |
|
template<typename T > |
intptr_t | OffsetFrom (T x) |
|
template<typename T > |
T | AddressFrom (intptr_t x) |
|
template<typename T > |
T | RoundDown (T x, intptr_t m) |
|
template<typename T > |
T | RoundUp (T x, intptr_t m) |
|
template<class T > |
T | AlignUp (T pointer, size_t alignment) |
|
template<typename T > |
int | Compare (const T &a, const T &b) |
|
template<typename T > |
int | PointerValueCompare (const T *a, const T *b) |
|
template<typename T > |
int | HandleObjectPointerCompare (const Handle< T > *a, const Handle< T > *b) |
|
uint32_t | RoundUpToPowerOf2 (uint32_t x) |
|
uint32_t | RoundDownToPowerOf2 (uint32_t x) |
|
template<typename T , typename U > |
bool | IsAligned (T value, U alignment) |
|
bool | IsAddressAligned (Address addr, intptr_t alignment, int offset=0) |
|
template<typename T > |
T | Max (T a, T b) |
|
template<typename T > |
T | Min (T a, T b) |
|
template<typename T > |
T | Abs (T a) |
|
template<typename T > |
T | NegAbs (T a) |
|
int | StrLength (const char *string) |
|
int32_t | WhichPowerOf2Abs (int32_t x) |
|
uint32_t | ComputeIntegerHash (uint32_t key, uint32_t seed) |
|
uint32_t | ComputeLongHash (uint64_t key) |
|
uint32_t | ComputePointerHash (void *ptr) |
|
Vector< const char > | CStrVector (const char *data) |
|
Vector< const uint8_t > | OneByteVector (const char *data, int length) |
|
Vector< const uint8_t > | OneByteVector (const char *data) |
|
Vector< char > | MutableCStrVector (char *data) |
|
Vector< char > | MutableCStrVector (char *data, int max) |
|
template<typename lchar , typename rchar > |
int | CompareCharsUnsigned (const lchar *lhs, const rchar *rhs, int chars) |
|
template<typename lchar , typename rchar > |
int | CompareChars (const lchar *lhs, const rchar *rhs, int chars) |
|
int | TenToThe (int exponent) |
|
template<class Dest , class Source > |
| INLINE (Dest BitCast(const Source &source)) |
|
template<class Dest , class Source > |
Dest | BitCast (const Source &source) |
|
uint32_t | unsigned_bitextract_32 (int msb, int lsb, uint32_t x) |
|
uint64_t | unsigned_bitextract_64 (int msb, int lsb, uint64_t x) |
|
int32_t | signed_bitextract_32 (int msb, int lsb, int32_t x) |
|
int | signed_bitextract_64 (int msb, int lsb, int x) |
|
bool | is_intn (int64_t x, unsigned n) |
|
bool | is_uintn (int64_t x, unsigned n) |
|
template<class T > |
T | truncate_to_intn (T x, unsigned n) |
|