summarylogtreecommitdiffstats
path: root/target-optimizing.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target-optimizing.patch')
-rw-r--r--target-optimizing.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/target-optimizing.patch b/target-optimizing.patch
new file mode 100644
index 00000000000..6649c5b06a0
--- /dev/null
+++ b/target-optimizing.patch
@@ -0,0 +1,22 @@
+--- onscripter-jh/Makefile.Linux 2021-02-12 13:19:35.333287357 +0800
++++ onscripter-jh.new/Makefile.Linux 2021-02-12 13:18:28.066124344 +0800
+@@ -55,6 +55,19 @@
+ LIBS += -llua5.1
+ EXT_OBJS += LUAHandler$(OBJSUFFIX)
+
++# optional: SIMD optimizing
++DEFS += -DUSE_SIMD -DUSE_SIMD_X86_SSE2
++ARCH = $(shell uname -m)
++DEFS += -DUSE_SIMD
++ifneq ($(filter i686 x86_64,$(ARCH)),)
++DEFS += -DUSE_SIMD_X86_SSE2
++else
++ifneq ($(filter armv7h armv7l,$(ARCH)),)
++DEFS += -DUSE_SIMD_ARM_NEON
++EXT_FLAGS += -mfpu=neon
++endif
++endif
++
+ # optional: force screen width for PDA
+ #DEFS += -DPDA_WIDTH=640
+