diff options
author | Marat Dukhan <maratek@gmail.com> | 2017-03-22 09:49:27 -0400 |
---|---|---|
committer | Marat Dukhan <maratek@gmail.com> | 2017-03-22 09:49:27 -0400 |
commit | 94f61c03e3e434c4b76c2145fe23a018788e8a90 (patch) | |
tree | 81940c990ad1ad3bade79118766f129d00c797bf /include | |
parent | 663e0aa3e8e747ca43732dbc98b35255a9cd4ca9 (diff) | |
download | psimd-94f61c03e3e434c4b76c2145fe23a018788e8a90.tar.gz |
Make header compatible with recent Apple Clang
Diffstat (limited to 'include')
-rw-r--r-- | include/psimd.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |