From b1d49d14ecf4f1e30803ca24f91c6064fdc8dea3 Mon Sep 17 00:00:00 2001 From: rogerman Date: Tue, 5 Apr 2022 22:12:05 -0700 Subject: [PATCH] matrix.h: Fix compiling on AltiVec-enabled systems. (Regression from commit 8a9fec43.) --- desmume/src/matrix.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/matrix.h b/desmume/src/matrix.h index b4795b2f1..2ee9cb82e 100644 --- a/desmume/src/matrix.h +++ b/desmume/src/matrix.h @@ -744,7 +744,7 @@ static void memset_u32_fast(void *dst, const u32 val) template 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 @@ -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(dst, src, VECLENGTH); + buffer_copy_fast(dst, src); } template