summaryrefslogtreecommitdiff
path: root/functable.c
diff options
context:
space:
mode:
authorMika Lindqvist <postmaster@raasu.org>2020-04-25 12:38:41 +0300
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-05-02 12:41:10 +0200
commit2a31408e13816410c1276e53f68eec7777281704 (patch)
tree329787ddee022cfed3bd37810c020a3a0d2cd5b9 /functable.c
parentf810fc8aab021cf294405b2e2d5c38ea4be85356 (diff)
Fix ARM64 build with Visual C++.
Diffstat (limited to 'functable.c')
-rw-r--r--functable.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/functable.c b/functable.c
index 8f63450..ca9b82f 100644
--- a/functable.c
+++ b/functable.c
@@ -131,7 +131,9 @@ ZLIB_INTERNAL void slide_hash_stub(deflate_state *s) {
# endif
functable.slide_hash = &slide_hash_sse2;
#elif defined(ARM_NEON_SLIDEHASH)
+# ifndef ARM_NOCHECK_NEON
if (arm_cpu_has_neon)
+# endif
functable.slide_hash = &slide_hash_neon;
#endif
#ifdef X86_AVX2
@@ -148,7 +150,9 @@ ZLIB_INTERNAL uint32_t adler32_stub(uint32_t adler, const unsigned char *buf, si
cpu_check_features();
#if (defined(__ARM_NEON__) || defined(__ARM_NEON)) && defined(ARM_NEON_ADLER32)
+# ifndef ARM_NOCHECK_NEON
if (arm_cpu_has_neon)
+# endif
functable.adler32 = &adler32_neon;
#endif