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

Unified Diff: third_party/zlib/adler32.c

Issue 2676493007: NEON implementation for Adler32
Patch Set: Coding style. 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
« no previous file with comments | « third_party/zlib/README.chromium ('k') | third_party/zlib/neon_adler32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « third_party/zlib/README.chromium ('k') | third_party/zlib/neon_adler32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698