mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user