Chromium Code Reviews| Index: third_party/zlib/adler32.c |
| diff --git a/third_party/zlib/adler32.c b/third_party/zlib/adler32.c |
| index d0be4380a39c9c5bf439b1552c43585b5aafad0a..26dad168ab09691a060e1ff0606b6886049e132b 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,12 @@ uLong ZEXPORT adler32_z(adler, buf, len) |
| const Bytef *buf; |
| z_size_t len; |
| { |
| +#ifdef __ARM_NEON__ |
| + if (len > 31) { |
|
f(malita)
2017/02/21 14:36:37
nit: local code style doesn't seem to require brac
|
| + return NEON_adler32(adler, buf, len); |
|
f(malita)
2017/02/21 14:36:37
general nit: local code style is 4x-space indentat
|
| + } |
| +#endif |
| + |
| unsigned long sum2; |
| unsigned n; |