#include "lib/sysdep/compiler.h"
#include "lib/sysdep/arch.h"
#include <cstdint>
Go to the source code of this file.
|
template<typename T > |
bool | IsAligned (T t, uintptr_t multiple) |
|
template<size_t multiple> |
size_t | Align (size_t n) |
|
◆ ALIGNED
#define ALIGNED |
( |
|
type, |
|
|
|
multiple |
|
) |
| type |
◆ ASSERT_VECTOR_ALIGNED
#define ASSERT_VECTOR_ALIGNED |
( |
|
pointer | ) |
|
Value:
#define ASSERT_VECTOR_MULTIPLE(size)
Definition: alignment.h:63
static const size_t vectorSize
Definition: alignment.h:60
◆ ASSERT_VECTOR_MULTIPLE
◆ CACHE_ALIGNED
#define CACHE_ALIGNED |
( |
|
type | ) |
ALIGNED(type, 64) |
◆ VECTOR_ALIGNED
#define VECTOR_ALIGNED |
( |
|
type | ) |
ALIGNED(type, 16) |
◆ Align()
template<size_t multiple>
◆ IsAligned()
bool IsAligned |
( |
T |
t, |
|
|
uintptr_t |
multiple |
|
) |
| |
|
inline |
◆ allocationAlignment
const size_t allocationAlignment = 16 |
|
static |
◆ cacheLineSize
const size_t cacheLineSize = 64 |
|
static |
◆ g_LargePageSize
const size_t g_LargePageSize = 2 * 1024 * 1024 |
|
static |
◆ g_PageSize
const size_t g_PageSize = 64 * 1024 |
|
static |
◆ GiB
const size_t GiB = size_t(1) << 30 |
|
static |
◆ KiB
const size_t KiB = size_t(1) << 10 |
|
static |
◆ maxSectorSize
const uintptr_t maxSectorSize = 0x1000 |
|
static |
◆ MiB
const size_t MiB = size_t(1) << 20 |
|
static |
◆ vectorSize
const size_t vectorSize = 16 |
|
static |