|
Pixar Arch 0.25.8
|
Provide architecture-specific memory-alignment information. More...
#include "pxr/arch/pxr.h"#include "pxr/arch/api.h"#include "pxr/arch/defines.h"#include <cstddef>#include <cstdint>Go to the source code of this file.
Namespaces | |
| namespace | pxr |
Macros | |
| #define | ARCH_MAX_ALIGNMENT_INCREASE |
| Maximum extra space needed for alignment. | |
| #define | ARCH_CACHE_LINE_SIZE |
| The size of a CPU cache line on the current processor architecture in bytes. | |
Functions | |
| size_t | pxr::ArchAlignMemorySize (size_t nBytes) |
| Return suitably aligned memory size. | |
| void * | pxr::ArchAlignMemory (void *base) |
| Align memory to the next "best" alignment value. | |
| void * | pxr::ArchAlignedAlloc (size_t alignment, size_t size) |
| Aligned memory allocation. | |
| void | pxr::ArchAlignedFree (void *ptr) |
| Free memory allocated by ArchAlignedAlloc. | |
Provide architecture-specific memory-alignment information.
| #define ARCH_MAX_ALIGNMENT_INCREASE |
Maximum extra space needed for alignment.
The ArchAlignMemorySize() can increase the required memory by no more than ARCH_MAX_ALIGNMENT_INCREASE.
| #define ARCH_CACHE_LINE_SIZE |
The size of a CPU cache line on the current processor architecture in bytes.