summaryrefslogtreecommitdiff
path: root/indra/llcommon/llmemory.h
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-08-17 21:01:51 +0800
committerErik Kundiman <erik@megapahit.org>2023-08-17 21:01:51 +0800
commit84b72f12d42e08fe989752ce36e1972bb11c8d70 (patch)
tree22a8ad377a3364705c6c26ed50444e8c583ce58a /indra/llcommon/llmemory.h
parenteadd80cf95cc25565a3bdcea179503d21ba5ae11 (diff)
Neon is used as an alternative to SSE2
on Arm systems.
Diffstat (limited to 'indra/llcommon/llmemory.h')
-rw-r--r--indra/llcommon/llmemory.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llcommon/llmemory.h b/indra/llcommon/llmemory.h
index b67a8c9bc0..dd9867c9b3 100644
--- a/indra/llcommon/llmemory.h
+++ b/indra/llcommon/llmemory.h
@@ -71,7 +71,11 @@ LL_COMMON_API void ll_assert_aligned_func(uintptr_t ptr,U32 alignment);
#define ll_assert_aligned(ptr,alignment)
#endif
+#if defined(__i386__) || defined(__x86_64__)
#include <xmmintrin.h>
+#else
+#include <sse2neon.h>
+#endif
template <typename T> T* LL_NEXT_ALIGNED_ADDRESS(T* address)
{