Use GNU alignment attributes in XbConvert

This commit is contained in:
darkf 2020-04-06 19:04:47 -07:00
parent 1148f81c67
commit a3a1849e6a
1 changed files with 6 additions and 1 deletions

View File

@ -698,7 +698,12 @@ static __inline uint32_t Clamp(int32_t val) {
#define SIMD_ALIGNED(var) __declspec(align(16)) var
#define SIMD_ALIGNED32(var) __declspec(align(64)) var
typedef __declspec(align(32)) int16_t lvec16[16];
typedef __declspec(align(32)) int8_t lvec8[32];
typedef __declspec(align(32)) int8_t lvec8[32];
#elif __GNUC__
#define SIMD_ALIGNED(var) __attribute__((aligned(16)))var
#define SIMD_ALIGNED32(var) __attribute__((aligned(64))) var
typedef __attribute__((aligned(32))) int16_t lvec16[16];
typedef __attribute__((aligned(32))) int8_t lvec8[32];
#endif
struct YuvConstants {