From 87f422bf6fd87999f9addf2be6356aaf1d88082b Mon Sep 17 00:00:00 2001 From: riccardom Date: Mon, 28 Dec 2009 14:08:01 +0000 Subject: [PATCH] Move _NOSSE_MatrixMultVec4x4 declaration in matrix.h instead of inside a function in gfx3d.cpp. The _ suggests it was meant to be in someway private but it's already used outside matrix.cpp. --- desmume/src/gfx3d.cpp | 1 - desmume/src/matrix.h | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/desmume/src/gfx3d.cpp b/desmume/src/gfx3d.cpp index 7e308c7d2..20c436c8e 100644 --- a/desmume/src/gfx3d.cpp +++ b/desmume/src/gfx3d.cpp @@ -1478,7 +1478,6 @@ static BOOL gfx3d_glBoxTest(u32 v) //yuck.. cant use the sse2 accelerated ones because vert.coords is not cache aligned or something //i dunno - void _NOSSE_MatrixMultVec4x4 (const float *matrix, float *vecPtr); _NOSSE_MatrixMultVec4x4(mtxCurrent[1],verts[i].coord); _NOSSE_MatrixMultVec4x4(mtxCurrent[0],verts[i].coord); } diff --git a/desmume/src/matrix.h b/desmume/src/matrix.h index 695606c64..b6a75979b 100644 --- a/desmume/src/matrix.h +++ b/desmume/src/matrix.h @@ -147,6 +147,9 @@ static FORCEINLINE void memset_u16_le(void* dst, u16 val) #endif +// NOSSE version always used in gfx3d.cpp +void _NOSSE_MatrixMultVec4x4 (const float *matrix, float *vecPtr); + //--------------------------- //switched SSE functions #ifdef ENABLE_SSE