diff options
Diffstat (limited to 'src/common/common.h')
| -rw-r--r-- | src/common/common.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/common/common.h b/src/common/common.h index e8d32bc93..a9d3a6e6a 100644 --- a/src/common/common.h +++ b/src/common/common.h | |||
| @@ -18,25 +18,4 @@ | |||
| 18 | #include "common/common_paths.h" | 18 | #include "common/common_paths.h" |
| 19 | #include "common/platform.h" | 19 | #include "common/platform.h" |
| 20 | 20 | ||
| 21 | #ifdef _WIN32 | ||
| 22 | // Alignment | ||
| 23 | #define MEMORY_ALIGNED16(x) __declspec(align(16)) x | ||
| 24 | #define MEMORY_ALIGNED32(x) __declspec(align(32)) x | ||
| 25 | #define MEMORY_ALIGNED64(x) __declspec(align(64)) x | ||
| 26 | #define MEMORY_ALIGNED128(x) __declspec(align(128)) x | ||
| 27 | #else | ||
| 28 | // Windows compatibility | ||
| 29 | #ifdef _LP64 | ||
| 30 | #define _M_X64 1 | ||
| 31 | #else | ||
| 32 | #define _M_IX86 1 | ||
| 33 | #endif | ||
| 34 | |||
| 35 | #define __forceinline inline __attribute__((always_inline)) | ||
| 36 | #define MEMORY_ALIGNED16(x) __attribute__((aligned(16))) x | ||
| 37 | #define MEMORY_ALIGNED32(x) __attribute__((aligned(32))) x | ||
| 38 | #define MEMORY_ALIGNED64(x) __attribute__((aligned(64))) x | ||
| 39 | #define MEMORY_ALIGNED128(x) __attribute__((aligned(128))) x | ||
| 40 | #endif | ||
| 41 | |||
| 42 | #include "swap.h" | 21 | #include "swap.h" |