Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/zlib/adler32.c

Issue 2676493007: NEON implementation for Adler32
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698