From 1849ac85d1dfccebe940cb3c6b1d3d428d437792 Mon Sep 17 00:00:00 2001 From: matusz Date: Tue, 21 Apr 2009 08:43:33 +0000 Subject: [PATCH] change 2 NOSSEs to NOSSE2s remove 'static' from alpha_lookup --- desmume/src/OGLRender.cpp | 2 +- desmume/src/gfx3d.cpp | 2 +- desmume/src/rasterize.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/desmume/src/OGLRender.cpp b/desmume/src/OGLRender.cpp index 1f2d9440c..4cd4cae75 100644 --- a/desmume/src/OGLRender.cpp +++ b/desmume/src/OGLRender.cpp @@ -846,7 +846,7 @@ static void GL_ReadFramebuffer() u16* dst = gfx3d_convertedScreen + (y<<8); u8* dstAlpha = gfx3d_convertedAlpha + (y<<8); - #ifndef NOSSE + #ifndef NOSSE2 //I dont know much about this kind of stuff, but this seems to help //for some reason I couldnt make the intrinsics work u8* wanx = (u8*)&((u32*)GPU_screen3D)[i]; diff --git a/desmume/src/gfx3d.cpp b/desmume/src/gfx3d.cpp index bb9f43adf..760c93524 100644 --- a/desmume/src/gfx3d.cpp +++ b/desmume/src/gfx3d.cpp @@ -103,7 +103,7 @@ CACHE_ALIGN const u8 alpha_5bit_to_4bit[] = { 0x10, 0x10 }; -CACHE_ALIGN static const u16 alpha_lookup[] = { +CACHE_ALIGN const u16 alpha_lookup[] = { 0x0000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000, 0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000, 0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000, diff --git a/desmume/src/rasterize.cpp b/desmume/src/rasterize.cpp index 38467868e..d9690f597 100644 --- a/desmume/src/rasterize.cpp +++ b/desmume/src/rasterize.cpp @@ -951,7 +951,7 @@ static void SoftRastConvertFramebuffer() for(int i=0,y=0;y<192;y++) { - #ifndef NOSSE + #ifndef NOSSE2 u8* wanx = (u8*)&src[i]; #define ASS(X,Y) __asm { prefetchnta [wanx+32*0x##X##Y] } #define PUNK(X) ASS(X,0) ASS(X,1) ASS(X,2) ASS(X,3) ASS(X,4) ASS(X,5) ASS(X,6) ASS(X,7) ASS(X,8) ASS(X,9) ASS(X,A) ASS(X,B) ASS(X,C) ASS(X,D) ASS(X,E) ASS(X,F)