summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortwinaphex2015-11-08 02:44:54 +0100
committertwinaphex2015-11-08 02:44:54 +0100
commitee44145406cbe2c1a77772c02683ed3f578c737d (patch)
tree1ddae5dad067c9d1011f636314709aa4ffdb0f59 /src
parent427472f8d3a4735a9f533b283df884f37731776a (diff)
downloadsnes9x2002-ee44145406cbe2c1a77772c02683ed3f578c737d.tar.gz
snes9x2002-ee44145406cbe2c1a77772c02683ed3f578c737d.tar.bz2
snes9x2002-ee44145406cbe2c1a77772c02683ed3f578c737d.zip
Start adding counterparts to ARM ASM codepaths
Diffstat (limited to 'src')
-rw-r--r--src/asmmemfuncs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/asmmemfuncs.h b/src/asmmemfuncs.h
index f9ff745..0f4e514 100644
--- a/src/asmmemfuncs.h
+++ b/src/asmmemfuncs.h
@@ -1,6 +1,7 @@
#ifndef _ASMMEMFUNCS_H_
#define _ASMMEMFUNCS_H_
+#ifdef ARM_ASM
#define memset32(_dst, _c, _count) \
({ uint32_t *dst = (_dst); register uint32_t c asm ("r7") = (_c); int count = (_count); register uint32_t dummy0 asm ("r4"), dummy1 asm ("r5"), dummy2 asm ("r6"); \
__asm__ __volatile__ ( \
@@ -202,5 +203,11 @@
: "r4", "r5", "r6", "r7", "cc", "memory" \
); _dst; \
})
+#else
+#define memset32(_dst, _c, _count) memset(_dst, _c, _count)
+#define memset16(_dst, _c, _count) memset(_dst, _c, _count)
+#define memcpy32(_dst, _src, _count) memcpy(_dst, _src, _count)
+#define memcpy16(_dst, _src, _count) memcpy(_dst, _src, _count)
+#endif
#endif