move platform-independent stuff out of /gp2x.
authornotaz <notaz@pixelinis>
Fri, 2 Sep 2011 14:44:41 +0000 (17:44 +0300)
committernotaz <notaz@pixelinis>
Fri, 2 Sep 2011 14:44:41 +0000 (17:44 +0300)
arm/arm_codegen.h [moved from gp2x/arm_codegen.h with 100% similarity]
arm/arm_dpimacros.h [moved from gp2x/arm_dpimacros.h with 100% similarity]
arm/arm_emit.h [moved from gp2x/arm_emit.h with 100% similarity]
arm/arm_stub.S [moved from gp2x/arm_stub.S with 100% similarity]
arm/video_blend.S [moved from gp2x/video_blend.S with 100% similarity]
cpu_threaded.c
gp2x/Makefile
video.c

similarity index 100%
rename from gp2x/arm_codegen.h
rename to arm/arm_codegen.h
similarity index 100%
rename from gp2x/arm_dpimacros.h
rename to arm/arm_dpimacros.h
similarity index 100%
rename from gp2x/arm_emit.h
rename to arm/arm_emit.h
similarity index 100%
rename from gp2x/arm_stub.S
rename to arm/arm_stub.S
similarity index 100%
rename from gp2x/video_blend.S
rename to arm/video_blend.S
index 4ff1548..377fb9d 100644 (file)
@@ -190,13 +190,9 @@ extern u8 bit_count[256];
 
 #include "psp/mips_emit.h"
 
-#elif defined(GP2X_BUILD)
+#elif defined(ARM_ARCH)
 
-#include "gp2x/arm_emit.h"
-
-#elif defined(GIZ_BUILD)
-
-#include "giz/arm_emit.h"
+#include "arm/arm_emit.h"
 
 #else
 
index ed01178..2096419 100644 (file)
@@ -20,7 +20,7 @@ endif
 
 # Platform specific definitions 
 
-VPATH      += ..
+VPATH      += .. ../arm
 CFLAGS     += -DARM_ARCH -DGP2X_BUILD
 ifeq ($(WIZ),1)
 CFLAGS     += -DWIZ_BUILD
diff --git a/video.c b/video.c
index 8730650..ffc6c7c 100644 (file)
--- a/video.c
+++ b/video.c
@@ -2403,7 +2403,7 @@ fill_line_builder(color32);
 
 #ifdef RENDER_COLOR16_NORMAL
 
-#ifndef GP2X_BUILD
+#ifndef ARM_ARCH
 
 void expand_normal(u16 *screen_ptr, u32 start, u32 end)
 {
@@ -2432,7 +2432,7 @@ void expand_normal(u16 *screen_ptr, u32 start, u32 end)
 #endif
 
 
-#ifndef GP2X_BUILD
+#ifndef ARM_ARCH
 
 void expand_blend(u32 *screen_src_ptr, u16 *screen_dest_ptr,
  u32 start, u32 end)