mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-09 15:52:27 +03:00
Ensure that m256 is 32-aligned on non-avx2 builds
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user