Fix crashes on Symbian and Blackberry (and likely others) when memory to be hashed is unaligned. Thanks @unknownbrackets

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

View File

@ -160,7 +160,7 @@ if(NOT MSVC)
endif()
if(BLACKBERRY)
add_definitions(-D_QNX_SOURCE -DARMV7 -O2 -mfpu=neon -mtune=cortex-a9)
add_definitions(-D_QNX_SOURCE -DARMV7 -O3 -mfpu=neon -mtune=cortex-a9)
endif()
if(X86 AND NOT MIPS)

View File

@ -39,7 +39,7 @@ You can contact the author at :
// 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)
//# define XXH_USE_UNALIGNED_ACCESS 1
# define XXH_USE_UNALIGNED_ACCESS 1
#endif
// XXH_ACCEPT_NULL_INPUT_POINTER :