summaryrefslogtreecommitdiff
path: root/src/memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/memory.cpp')
-rw-r--r--src/memory.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/memory.cpp b/src/memory.cpp
index fc82a13..9503b00 100644
--- a/src/memory.cpp
+++ b/src/memory.cpp
@@ -291,8 +291,10 @@ void Memory_Fill(uint8 *Address_Write, uint8 *Address_Read, uint64 WriteSize, ui
void Arbitrary_Zero(uint8 *Address_Write, uint64 Size)
{
- __m256i Zero256 = _mm256_setzero_si256();
uint64 i = 0;
+#if ARM
+#else
+ __m256i Zero256 = _mm256_setzero_si256();
if (Size > 64 && InstructionMode == instruction_mode_avx) {
uint64 Size_Lane = Size - (Size % 64);
while (i < Size_Lane) {
@@ -301,6 +303,7 @@ void Arbitrary_Zero(uint8 *Address_Write, uint64 Size)
i += 64;
}
}
+#endif
while (i < Size) {
*(Address_Write + i) = 0;
i++;