Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_compiler_attrs.h
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| #endif | #endif | ||||
| /* Declare the memory alignment in Bytes. */ | /* Declare the memory alignment in Bytes. */ | ||||
| #if defined(_WIN32) && !defined(FREE_WINDOWS) | #if defined(_WIN32) && !defined(FREE_WINDOWS) | ||||
| # define ATTR_ALIGN(x) __declspec(align(x)) | # define ATTR_ALIGN(x) __declspec(align(x)) | ||||
| #else | #else | ||||
| # define ATTR_ALIGN(x) __attribute__((aligned(x))) | # define ATTR_ALIGN(x) __attribute__((aligned(x))) | ||||
| #endif | #endif | ||||
| /* Alignment directive */ | |||||
| #ifdef _WIN64 | |||||
| # define ALIGN_STRUCT __declspec(align(64)) | |||||
| #else | |||||
| # define ALIGN_STRUCT | |||||
| #endif | |||||