From 94f61c03e3e434c4b76c2145fe23a018788e8a90 Mon Sep 17 00:00:00 2001 From: Marat Dukhan Date: Wed, 22 Mar 2017 09:49:27 -0400 Subject: Make header compatible with recent Apple Clang --- include/psimd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/psimd.h b/include/psimd.h index a1c42eb..42f7e1c 100644 --- a/include/psimd.h +++ b/include/psimd.h @@ -283,7 +283,7 @@ PSIMD_INTRINSIC psimd_f32 psimd_load_stride2_f32(const void* address) { const psimd_f32 v0x1x = psimd_load_f32(address); - const psimd_f32 vx2x3 = psimd_load_f32(address + 3 * sizeof(float)); + const psimd_f32 vx2x3 = psimd_load_f32((const float*) address + 3); #if defined(__clang__) return __builtin_shufflevector(v0x1x, vx2x3, 0, 2, 5, 7); #else @@ -302,7 +302,7 @@ PSIMD_INTRINSIC psimd_f32 psimd_load3_stride2_f32(const void* address) { const psimd_f32 v0x1x = psimd_load_f32(address); - const psimd_f32 v2zzz = psimd_load1_f32(address + 2 * sizeof(float)); + const psimd_f32 v2zzz = psimd_load1_f32((const float*) address + 2); #if defined(__clang__) return __builtin_shufflevector(v0x1x, v2zzz, 0, 2, 4, 6); #else -- cgit v1.2.3