Skip to content

Commit 79762fa

Browse files
WIP
1 parent 21ae08b commit 79762fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/xsimd/arch/xsimd_altivec.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,14 +839,14 @@ namespace xsimd
839839
template <size_t N, class A, class T>
840840
XSIMD_INLINE batch<T, A> slide_left(batch<T, A> const& x, requires_arch<altivec>) noexcept
841841
{
842-
return vec_sll(x.data, vec_splats((uint32_t)N));
842+
return (typename batch<T, A>::register_type)vec_sll((__vector unsigned char)x.data, vec_splats((uint32_t)N));
843843
}
844844

845845
// slide_right
846846
template <size_t N, class A, class T>
847847
XSIMD_INLINE batch<T, A> slide_right(batch<T, A> const& x, requires_arch<altivec>) noexcept
848848
{
849-
return vec_srl(x.data, vec_splats((uint32_t)N));
849+
return (typename batch<T, A>::register_type)vec_srl((__vector unsigned char)x.data, vec_splats((uint32_t)N));
850850
}
851851

852852
// sadd

0 commit comments

Comments
 (0)