Ensure simd types are aligned to what we assume

Turns out Clang is sensitive to the location of the alignment attribute.
This commit is contained in:
Matthew Barr
2017-04-07 16:40:11 +10:00
parent c0d7960954
commit 0b8f25a036
2 changed files with 9 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ typedef struct ALIGN_DIRECTIVE {u64a hi; u64a lo;} m128;
#if defined(HAVE_AVX2)
typedef __m256i m256;
#else
typedef ALIGN_AVX_DIRECTIVE struct {m128 lo; m128 hi;} m256;
typedef struct ALIGN_AVX_DIRECTIVE {m128 lo; m128 hi;} m256;
#endif
// these should align to 16 and 32 respectively