Ensure that m256 is 32-aligned on non-avx2 builds

This commit is contained in:
Matthew Barr
2016-07-07 14:00:11 +10:00
parent d497a1259a
commit 22b451b59b
3 changed files with 9 additions and 12 deletions

View File

@@ -52,6 +52,9 @@
#define ALIGN_ATTR(x) __attribute__((aligned((x))))
#endif
#define ALIGN_DIRECTIVE ALIGN_ATTR(16)
#define ALIGN_AVX_DIRECTIVE ALIGN_ATTR(32)
#define ALIGN_CL_DIRECTIVE ALIGN_ATTR(64)
typedef signed char s8;
typedef unsigned char u8;
@@ -82,10 +85,6 @@ typedef u32 ReportID;
#define HS_PUBLIC_API
#endif
#define ALIGN_DIRECTIVE ALIGN_ATTR(16)
#define ALIGN_AVX_DIRECTIVE ALIGN_ATTR(32)
#define ALIGN_CL_DIRECTIVE ALIGN_ATTR(64)
#define ARRAY_LENGTH(a) (sizeof(a)/sizeof((a)[0]))
/** \brief Shorthand for the attribute to shut gcc about unused parameters */