Index: third_party/zlib/adler32.c |
diff --git a/third_party/zlib/adler32.c b/third_party/zlib/adler32.c |
index d0be4380a39c9c5bf439b1552c43585b5aafad0a..0b74c7237c090ae2124fd16dda81684352db11e8 100644 |
--- a/third_party/zlib/adler32.c |
+++ b/third_party/zlib/adler32.c |
@@ -6,6 +6,9 @@ |
/* @(#) $Id$ */ |
#include "zutil.h" |
+#ifdef __ARM_NEON__ |
+#include "neon_adler32.h" |
+#endif |
local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2)); |
@@ -65,6 +68,11 @@ uLong ZEXPORT adler32_z(adler, buf, len) |
const Bytef *buf; |
z_size_t len; |
{ |
+#ifdef __ARM_NEON__ |
+ if (len > 31) |
+ return NEON_adler32(adler, buf, len); |
+#endif |
+ |
unsigned long sum2; |
unsigned n; |