Define unaligned access for all ARM. We don't support any that don't. The define didn't exist yet in GCC 4.6 (used by Symbian and Android).

This commit is contained in:
Sacha 2013-11-04 12:45:13 +10:00
parent 03a9cd6711
commit 2e324c9842
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ You can contact the author at :
// For others CPU, the compiler will be more cautious, and insert extra code to ensure aligned access is respected.
// If you know your target CPU supports unaligned memory access, you want to force this option manually to improve performance.
// You can also enable this parameter if you know your input data will always be aligned (boundaries of 4, for U32).
#if defined(__ARM_FEATURE_UNALIGNED) || defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64)
#if defined(ARM) || defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64)
# define XXH_USE_UNALIGNED_ACCESS 1
#endif

2
lang

@ -1 +1 @@
Subproject commit 4ed6ae5b867b27d24a838fb83d8f0d921132343a
Subproject commit 003154003358c1919affef0d8013d9fbdbf35510