From d5e0983c10e0ca717603dd1a406ff0d6e450e905 Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 2 Sep 2011 17:44:41 +0300 Subject: [PATCH] move platform-independent stuff out of /gp2x. --- {gp2x => arm}/arm_codegen.h | 0 {gp2x => arm}/arm_dpimacros.h | 0 {gp2x => arm}/arm_emit.h | 0 {gp2x => arm}/arm_stub.S | 0 {gp2x => arm}/video_blend.S | 0 cpu_threaded.c | 8 ++------ gp2x/Makefile | 2 +- video.c | 4 ++-- 8 files changed, 5 insertions(+), 9 deletions(-) rename {gp2x => arm}/arm_codegen.h (100%) rename {gp2x => arm}/arm_dpimacros.h (100%) rename {gp2x => arm}/arm_emit.h (100%) rename {gp2x => arm}/arm_stub.S (100%) rename {gp2x => arm}/video_blend.S (100%) diff --git a/gp2x/arm_codegen.h b/arm/arm_codegen.h similarity index 100% rename from gp2x/arm_codegen.h rename to arm/arm_codegen.h diff --git a/gp2x/arm_dpimacros.h b/arm/arm_dpimacros.h similarity index 100% rename from gp2x/arm_dpimacros.h rename to arm/arm_dpimacros.h diff --git a/gp2x/arm_emit.h b/arm/arm_emit.h similarity index 100% rename from gp2x/arm_emit.h rename to arm/arm_emit.h diff --git a/gp2x/arm_stub.S b/arm/arm_stub.S similarity index 100% rename from gp2x/arm_stub.S rename to arm/arm_stub.S diff --git a/gp2x/video_blend.S b/arm/video_blend.S similarity index 100% rename from gp2x/video_blend.S rename to arm/video_blend.S diff --git a/cpu_threaded.c b/cpu_threaded.c index 4ff1548..377fb9d 100644 --- a/cpu_threaded.c +++ b/cpu_threaded.c @@ -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 diff --git a/gp2x/Makefile b/gp2x/Makefile index ed01178..2096419 100644 --- a/gp2x/Makefile +++ b/gp2x/Makefile @@ -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 --- 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) -- 2.39.5