aboutsummaryrefslogtreecommitdiff
path: root/vm/native/java_lang_System.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vm/native/java_lang_System.cpp')
-rw-r--r--vm/native/java_lang_System.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/vm/native/java_lang_System.cpp b/vm/native/java_lang_System.cpp
index 1b07f85ad..4485a9217 100644
--- a/vm/native/java_lang_System.cpp
+++ b/vm/native/java_lang_System.cpp
@@ -62,6 +62,10 @@
* TODO: use __builtin_prefetch
* TODO: write an ARM-optimized version
*/
+#if defined(HAVE_HALFWORD_ATOMIC_MEMMOVE)
+#define move16 memmove
+#define move32 memmove
+#else
static void memmove_words(void* dest, const void* src, size_t n) {
assert((((uintptr_t) dest | (uintptr_t) src | n) & 0x01) == 0);
@@ -177,6 +181,7 @@ static void memmove_words(void* dest, const void* src, size_t n) {
#define move16 memmove_words
#define move32 memmove_words
+#endif
/*
* public static void arraycopy(Object src, int srcPos, Object dest,