|
Pyrogenesis
13997
|
Go to the source code of this file.
Macros | |
| #define | ALIGNED(type, multiple) type |
| #define | VECTOR_ALIGNED(type) ALIGNED(type, 16) |
| #define | ASSERT_VECTOR_MULTIPLE(size) ASSERT(IsAligned(size, vectorSize)) |
| #define | ASSERT_VECTOR_ALIGNED(pointer) |
| #define | CACHE_ALIGNED(type) ALIGNED(type, 64) |
Functions | |
| template<typename T > | |
| bool | IsAligned (T t, uintptr_t multiple) |
| template<size_t multiple> | |
| size_t | Align (size_t n) |
Variables | |
| static const size_t | vectorSize = 16 |
| static const size_t | cacheLineSize = 64 |
| static const size_t | pageSize = 0x1000 |
| static const size_t | largePageSize = 0x200000 |
| static const size_t | allocationAlignment = 16 |
| static const size_t | KiB = size_t(1) << 10 |
| static const size_t | MiB = size_t(1) << 20 |
| static const size_t | GiB = size_t(1) << 30 |
| static const uintptr_t | maxSectorSize = 0x1000 |
| #define ALIGNED | ( | type, | |
| multiple | |||
| ) | type |
Definition at line 28 of file alignment.h.
| #define ASSERT_VECTOR_ALIGNED | ( | pointer | ) |
Definition at line 42 of file alignment.h.
| #define ASSERT_VECTOR_MULTIPLE | ( | size | ) | ASSERT(IsAligned(size, vectorSize)) |
Definition at line 39 of file alignment.h.
| #define CACHE_ALIGNED | ( | type | ) | ALIGNED(type, 64) |
Definition at line 52 of file alignment.h.
| #define VECTOR_ALIGNED | ( | type | ) | ALIGNED(type, 16) |
Definition at line 37 of file alignment.h.
|
inline |
Definition at line 14 of file alignment.h.
|
inline |
Definition at line 8 of file alignment.h.
|
static |
Definition at line 69 of file alignment.h.
|
static |
Definition at line 51 of file alignment.h.
|
static |
Definition at line 73 of file alignment.h.
|
static |
Definition at line 71 of file alignment.h.
|
static |
Definition at line 62 of file alignment.h.
|
static |
Definition at line 82 of file alignment.h.
|
static |
Definition at line 72 of file alignment.h.
|
static |
Definition at line 61 of file alignment.h.
|
static |
Definition at line 36 of file alignment.h.
1.8.5