Skip to content

Commit f2107a3

Browse files
committed
Merge pull request #1892 from petermm/aarch64-builtin_bswap
Add aarch64 support to unaligned memory access macros These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 61a70d3 + 8a88b03 commit f2107a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libAtomVM/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extern "C" {
4545
( (((uint8_t *)(ptr))[0] << 24) | (((uint8_t *) (ptr))[1] << 16) | (((uint8_t *)(ptr))[2] << 8) | ((uint8_t *)(ptr))[3] )
4646
#endif
4747

48-
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86)
48+
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86) || defined(__aarch64__) || defined(_M_ARM64)
4949
#define READ_64_UNALIGNED(ptr) \
5050
__builtin_bswap64(*((uint64_t *) (ptr)))
5151

0 commit comments

Comments
 (0)