mirror of
http://github.com/valkey-io/valkey
synced 2024-11-23 11:51:01 +00:00
The aarch64 architecture is support normal memory unaligned accesses,
so add the UNALIGNED_LE_CPU to the aarch64 .
This commit is contained in:
parent
d7c25806c0
commit
66a5c1cd7e
@ -58,7 +58,8 @@ int siptlw(int c) {
|
||||
/* Test of the CPU is Little Endian and supports not aligned accesses.
|
||||
* Two interesting conditions to speedup the function that happen to be
|
||||
* in most of x86 servers. */
|
||||
#if defined(__X86_64__) || defined(__x86_64__) || defined (__i386__)
|
||||
#if defined(__X86_64__) || defined(__x86_64__) || defined (__i386__) \
|
||||
|| defined (__aarch64__) || defined (__arm64__)
|
||||
#define UNALIGNED_LE_CPU
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user