matrix.h: Fix compiling on AltiVec-enabled systems. (Regression from commit 8a9fec43.)

This commit is contained in:
rogerman 2022-04-05 22:12:05 -07:00
parent 74cdfeea32
commit b1d49d14ec
1 changed files with 2 additions and 2 deletions

View File

@ -744,7 +744,7 @@ static void memset_u32_fast(void *dst, const u32 val)
template <size_t VECLENGTH>
static void buffer_copy_fast(void *__restrict dst, void *__restrict src)
{
MACRODO_N( VECLENGTH / sizeof(v128s8), vec_st(vec_ld((X)*sizeof(v128s8),src), (X)*sizeof(v128s8), dst) );
MACRODO_N( VECLENGTH / sizeof(v128s8), vec_st(vec_ld((X)*sizeof(v128s8),(u8 *__restrict)src), (X)*sizeof(v128s8), (u8 *__restrict)dst) );
}
template <size_t VECLENGTH>
@ -752,7 +752,7 @@ static void stream_copy_fast(void *__restrict dst, void *__restrict src)
{
// AltiVec doesn't have the same temporal/caching distinctions that SSE and AVX do,
// so just use buffer_copy_fast() for this function too.
buffer_copy_fast<VECLENGTH>(dst, src, VECLENGTH);
buffer_copy_fast<VECLENGTH>(dst, src);
}
template <class T, size_t VECLENGTH, bool NEEDENDIANSWAP>