Skip to content

Commit 6bb9830

Browse files
WIP
1 parent 209d0c5 commit 6bb9830

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

include/xsimd/arch/xsimd_altivec.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -444,15 +444,15 @@ namespace xsimd
444444
template <class A, class T, class = typename std::enable_if<std::is_scalar<T>::value, void>::type>
445445
XSIMD_INLINE batch<T, A> load_aligned(T const* mem, convert<T>, requires_arch<altivec>) noexcept
446446
{
447-
return vec_ld(0, mem);
447+
return vec_ld(0, reinterpret_cast<const typename batch<T, A>::register_type*>(mem));
448448
}
449449

450450
// load_unaligned
451451
template <class A, class T, class = typename std::enable_if<std::is_scalar<T>::value, void>::type>
452452
XSIMD_INLINE batch<T, A> load_unaligned(T const* mem, convert<T>, requires_arch<altivec>) noexcept
453453
{
454-
auto lo = vec_ld(0, mem);
455-
auto hi = vec_ld(16, mem);
454+
auto lo = vec_ld(0, reinterpret_cast<const typename batch<T, A>::register_type*>(mem));
455+
auto hi = vec_ld(16, reinterpret_cast<const typename batch<T, A>::register_type*>(mem));
456456
return vec_perm(lo, hi, vec_lvsl(0, mem));
457457
}
458458

@@ -794,7 +794,7 @@ namespace xsimd
794794
template <class A, class T, class = typename std::enable_if<std::is_scalar<T>::value, void>::type>
795795
XSIMD_INLINE void store_aligned(T* mem, batch<T, A> const& self, requires_arch<altivec>) noexcept
796796
{
797-
return vec_st(self.data, 0, mem);
797+
return vec_st(self.data, 0, reinterpret_cast<typename batch<T, A>::register_type*>(mem));
798798
}
799799

800800
// store_unaligned

test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,15 @@ set(XSIMD_TESTS
146146
test_complex_power.cpp
147147
test_complex_trigonometric.cpp
148148
# test_conversion.cpp
149-
# test_custom_default_arch.cpp
149+
test_custom_default_arch.cpp
150150
test_error_gamma.cpp
151151
test_explicit_batch_instantiation.cpp
152152
test_exponential.cpp
153153
test_extract_pair.cpp
154154
# test_fp_manipulation.cpp
155-
# test_hyperbolic.cpp
155+
test_hyperbolic.cpp
156156
test_load_store.cpp
157-
# test_memory.cpp
157+
test_memory.cpp
158158
# test_poly_evaluation.cpp
159159
# test_power.cpp
160160
# test_rounding.cpp

0 commit comments

Comments
 (0)