1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Remove old arm assembler.

GCC replaces (value << 8) | (value >> 8) with __builtin_bswap16 if -Os,
-O1 or higher is used. __builtin_bswap16 is as fast as the assembler
declaration.
This commit is contained in:
gizmo98 2016-09-11 17:16:13 +02:00 committed by Sergey Lipskiy
parent 6c3b3feb58
commit 04a1faa689
3 changed files with 0 additions and 8 deletions

View File

@ -65,7 +65,6 @@ if(EXISTS "/opt/vc/include/bcm_host.h")
add_definitions(
-DVC
-DUSE_DEPTH_RENDERBUFFER
-DARM_ASM
)
include_directories(
"/opt/vc/include"
@ -167,7 +166,6 @@ if(PANDORA)
-DPANDORA
-DPowerVR_SGX_540
-DGLES2
-DARM_ASM
)
endif(PANDORA)

View File

@ -164,12 +164,7 @@ inline u16 swapword( u16 value )
xchg ah, al
}
#else // WIN32_ASM
#ifdef ARM_ASM
asm("rev16 %0, %0" : "+r"(value)::);
return value;
#else
return (value << 8) | (value >> 8);
#endif // ARM_ASM
#endif // WIN32_ASM
}

View File

@ -97,7 +97,6 @@ ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
# Use for ARM7a:
MY_LOCAL_SRC_FILES += $(SRCDIR)/3DMathNeon.cpp.neon
MY_LOCAL_SRC_FILES += $(SRCDIR)/gSPNeon.cpp.neon
MY_LOCAL_CFLAGS += -DARM_ASM
MY_LOCAL_CFLAGS += -D__NEON_OPT
MY_LOCAL_CFLAGS += -D__VEC4_OPT -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -mvectorize-with-neon-quad -ftree-vectorizer-verbose=2 -funsafe-math-optimizations