* Super NES and Super Nintendo Entertainment System are trademarks of
* Nintendo Co., Limited and its subsidiary companies.
*/
-//#define MMX
-#if !defined(_SNESPPC) && !defined(__GIZ__) && !defined(__GP2X__)
-#include "snes9x/snes9x.h"
-#include "snes9x/port.h"
-#include "snes9x/gfx.h"
-#else
#include "snes9x.h"
#include "port.h"
#include "gfx.h"
-#endif
#ifdef MMX
EXTERN_C void _2xSaILine (uint8 *srcPtr, uint8 *deltaPtr, uint32 srcPitch, uint32 width,
#ifdef MMX_BLA //no MMX version yet
if (cpu_mmx && width != 512)
{
- for (height; height; height-=1)
+ for (; height; height--)
{
bP = (uint16 *) srcPtr;
xP = (uint16 *) deltaPtr;
#endif
uint32 Nextline = srcPitch >> 1;
- for (height; height; height-=1)
+ for (; height; height--)
{
bP = (uint16 *) srcPtr;
dP = (uint32 *) dstPtr;
{
uint32 *dP;
uint16 *bP;
-#if !defined(_SNESPPC) && !defined(__GIZ__) && !defined(__GP2X__)
+#ifdef MMX
uint16 *xP;
#endif
#ifdef MMX
if (mmx_cpu && width != 512)
{
- for (height; height; height-=1)
+ for (; height; height--)
{
bP = (uint16 *) srcPtr;
xP = (uint16 *) deltaPtr;
#endif
uint32 Nextline = srcPitch >> 1;
- for (height; height; height-=1)
+ for (; height; height--)
{
bP = (uint16 *) srcPtr;
dP = (uint32 *) dstPtr;
{
uint32 *dP;
uint16 *bP;
-#if !defined(_SNESPPC) && !defined(__GIZ__) && !defined(__GP2X__)
+#ifdef MMX
uint16 *xP;
#endif
#ifdef MMX
if (mmx_cpu && width != 512)
{
- for (height; height; height-=1)
+ for (; height; height--)
{
bP = (uint16 *) srcPtr;
#endif
uint32 Nextline = srcPitch >> 1;
- for (height; height; height-=1)
+ for (; height; height--)
{
bP = (uint16 *) srcPtr;
dP = (uint32 *) dstPtr;