Provides functions for working with pointer data alignment computations. More...
#include <cassert>#include "Types.h"

Go to the source code of this file.
Namespaces | |
| namespace | kNet |
Defines | |
| #define | IS_POW2(value) (((value) & ((value)-1)) == 0) |
| Is value an exact power of 2? i.e. 1,2,4,8,16,... | |
Functions | |
| bool | kNet::IsPow2Aligned (uintptr_t pointer, u32 alignment) |
| Is the given pointer aligned to the pow2-boundary specified by alignment? | |
| uintptr_t | kNet::AlignUpPow2 (uintptr_t pointer, u32 alignment) |
| uintptr_t | kNet::AlignDownPow2 (uintptr_t pointer, u32 alignment) |
Provides functions for working with pointer data alignment computations.
1.7.1