Build: Update comments about unaligned access to mention 64-bit.

This commit is contained in:
Lasse Collin 2023-03-17 08:41:36 +02:00 committed by Jia Tan
parent 82aacb4036
commit 4523a5ee29
2 changed files with 5 additions and 6 deletions

View File

@ -59,9 +59,8 @@ function(tuklib_integer TARGET_OR_ALL)
endif() endif()
endif() endif()
# 16-bit and 32-bit unaligned access is fast on x86(-64), # Unaligned access is fast on x86(-64), big endian PowerPC, and usually on
# big endian PowerPC, and usually on 32/64-bit ARM too. # 32/64-bit ARM too. There are others too and ARM could be a false match.
# There are others too and ARM could be a false match.
# #
# Guess the default value for the option. # Guess the default value for the option.
# CMake's ability to give info about the target arch seems bad. # CMake's ability to give info about the target arch seems bad.
@ -81,7 +80,7 @@ function(tuklib_integer TARGET_OR_ALL)
endif() endif()
option(TUKLIB_FAST_UNALIGNED_ACCESS option(TUKLIB_FAST_UNALIGNED_ACCESS
"Enable if the system supports *fast* unaligned memory access \ "Enable if the system supports *fast* unaligned memory access \
with 16-bit and 32-bit integers." with 16-bit, 32-bit, and 64-bit integers."
"${FAST_UNALIGNED_GUESS}") "${FAST_UNALIGNED_GUESS}")
tuklib_add_definition_if("${TARGET_OR_ALL}" TUKLIB_FAST_UNALIGNED_ACCESS) tuklib_add_definition_if("${TARGET_OR_ALL}" TUKLIB_FAST_UNALIGNED_ACCESS)

View File

@ -8,8 +8,8 @@
# Checks for tuklib_integer.h: # Checks for tuklib_integer.h:
# - Endianness # - Endianness
# - Does the compiler or the operating system provide byte swapping macros # - Does the compiler or the operating system provide byte swapping macros
# - Does the hardware support fast unaligned access to 16-bit # - Does the hardware support fast unaligned access to 16-bit, 32-bit,
# and 32-bit integers # and 64-bit integers
# #
# COPYING # COPYING
# #