From e06ccbe3f703929353a4eb15dc472961850f31de Mon Sep 17 00:00:00 2001 From: DRC Date: Fri, 8 Jul 2016 13:00:13 -0500 Subject: [PATCH] 64-bit AVX2: Fix bug in IS_ALIGNED_AVX() macro 32 = 1 << 5, not 1 << 8 --- simd/jsimd_x86_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simd/jsimd_x86_64.c b/simd/jsimd_x86_64.c index b149a77..89efc86 100644 --- a/simd/jsimd_x86_64.c +++ b/simd/jsimd_x86_64.c @@ -29,7 +29,7 @@ #define IS_ALIGNED(ptr, order) (((size_t)ptr & ((1 << order) - 1)) == 0) #define IS_ALIGNED_SSE(ptr) (IS_ALIGNED(ptr, 4)) /* 16 byte alignment */ -#define IS_ALIGNED_AVX(ptr) (IS_ALIGNED(ptr, 8)) /* 32 byte alignment */ +#define IS_ALIGNED_AVX(ptr) (IS_ALIGNED(ptr, 5)) /* 32 byte alignment */ static unsigned int simd_support = ~0; static unsigned int simd_huffman = 1; -- 2.40.0