Index: third_party/zlib/adler32.c |
diff --git a/third_party/zlib/adler32.c b/third_party/zlib/adler32.c |
index a868f073d8a0e35dcb3ec812b41b1d3f0acdd84d..fd80051ffb60444996ef488c48a7db01891b1e32 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 |
#define local static |
@@ -67,6 +70,12 @@ uLong ZEXPORT adler32(adler, buf, len) |
const Bytef *buf; |
uInt len; |
{ |
+#ifdef __ARM_NEON__ |
+ if (len > 31) { |
+ return NEON_adler32(adler, buf, len); |
+ } |
+#endif |
+ |
unsigned long sum2; |
unsigned n; |