forked from pool/xxhash
Christian Goll
a044c2b606
- add patch xxhash-avoid-armv6-unaligned-access.patch do not expect unaligned accesses to work on armv6, it breaks in our build setup using aarch64 kernels OBS-URL: https://build.opensuse.org/request/show/904411 OBS-URL: https://build.opensuse.org/package/show/science/xxhash?expand=0&rev=14
12 lines
616 B
Diff
12 lines
616 B
Diff
--- xxHash-0.8.0/xxhash.h 2021/07/06 15:14:04 1.1
|
|
+++ xxHash-0.8.0/xxhash.h 2021/07/06 15:14:36
|
|
@@ -807,7 +807,7 @@
|
|
*/
|
|
#ifndef XXH_FORCE_MEMORY_ACCESS /* can be defined externally, on command line for example */
|
|
# if !defined(__clang__) && defined(__GNUC__) && defined(__ARM_FEATURE_UNALIGNED) && defined(__ARM_ARCH) && (__ARM_ARCH == 6)
|
|
-# define XXH_FORCE_MEMORY_ACCESS 2
|
|
+# define XXH_FORCE_MEMORY_ACCESS 1
|
|
# elif !defined(__clang__) && ((defined(__INTEL_COMPILER) && !defined(_WIN32)) || \
|
|
(defined(__GNUC__) && (defined(__ARM_ARCH) && __ARM_ARCH >= 7)))
|
|
# define XXH_FORCE_MEMORY_ACCESS 1
|