mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-20 23:54:48 +00:00
Fix crashes on Symbian and Blackberry (and likely others) when memory to be hashed is unaligned. Thanks @unknownbrackets
This commit is contained in:
parent
e2e74e81d6
commit
03a9cd6711
@ -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)
|
||||
|
@ -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 :
|
||||
|
Loading…
x
Reference in New Issue
Block a user