diff options
| author | 2015-05-06 23:26:19 -0300 | |
|---|---|---|
| committer | 2015-05-07 15:45:21 -0300 | |
| commit | 1bd1a13a02e317a50252b0b5d5077b6ab2dbef53 (patch) | |
| tree | 0ef5da2dd302996c2d36ea283d6d6cde663ac16f /src/common/common.h | |
| parent | Common: Move SSE detection ifdefs to platform.h (diff) | |
| download | yuzu-1bd1a13a02e317a50252b0b5d5077b6ab2dbef53.tar.gz yuzu-1bd1a13a02e317a50252b0b5d5077b6ab2dbef53.tar.xz yuzu-1bd1a13a02e317a50252b0b5d5077b6ab2dbef53.zip | |
Common: Move alignment macros to common_funcs.h
Diffstat (limited to '')
| -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" |