Use GNU alignment attributes in XbConvert
This commit is contained in:
parent
1148f81c67
commit
a3a1849e6a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue