From 1a4e878abefcbcaad8168834197186a9f1aa1e13 Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Fri, 19 Jan 2024 15:23:11 +0200 Subject: [PATCH] Revert "if we don't have a 256/512-bit SIMD engine, there is no need to have 32/64-byte alignment and gcc complains anyway" This reverts commit 9134cd6250f47034e15ef42981a3257ae4e3d506. --- src/util/simd_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/simd_types.h b/src/util/simd_types.h index 68fde3b7..e393d081 100644 --- a/src/util/simd_types.h +++ b/src/util/simd_types.h @@ -54,13 +54,13 @@ typedef simde__m128i m128; #if !defined(m256) && !defined(HAVE_SIMD_256_BITS) -typedef struct ALIGN_ATTR(16) {m128 lo; m128 hi;} m256; +typedef struct ALIGN_AVX_DIRECTIVE {m128 lo; m128 hi;} m256; #endif typedef struct {m128 lo; m128 mid; m128 hi;} m384; #if !defined(m512) && !defined(HAVE_SIMD_512_BITS) -typedef struct ALIGN_ATTR(16) {m256 lo; m256 hi;} m512; +typedef struct ALIGN_ATTR(64) {m256 lo; m256 hi;} m512; #endif #endif /* SIMD_TYPES_H */