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/BUILD.gn

Issue 2722063002: zlib: inflate using wider loads and stores
Patch Set: zlib: inflate using wider loads and stores Created 3 years, 8 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 | « no previous file | third_party/zlib/contrib/arm/chunkcopy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/zlib/BUILD.gn
diff --git a/third_party/zlib/BUILD.gn b/third_party/zlib/BUILD.gn
index ea3120168cbffa0cbb9523fc1927058533ec7702..851218ebdc014ebb36fa773dff87fd8e30b86817 100644
--- a/third_party/zlib/BUILD.gn
+++ b/third_party/zlib/BUILD.gn
@@ -4,6 +4,10 @@
import("//build_overrides/build.gni")
+if (current_cpu == "arm" || current_cpu == "arm64") {
+ import("//build/config/arm.gni")
+}
+
config("zlib_config") {
include_dirs = [ "." ]
}
@@ -73,6 +77,20 @@ static_library("zlib") {
"zutil.h",
]
+ if (current_cpu == "arm" || current_cpu == "arm64") {
+ if (arm_use_neon) {
+ sources -= [
+ "inflate.c",
+ "inffast.c",
+ ]
+ sources += [
+ "contrib/arm/inflate.c",
+ "contrib/arm/inffast.c",
+ "contrib/arm/chunkcopy.h",
+ ]
+ }
+ }
+
if (!is_ios && (current_cpu == "x86" || current_cpu == "x64")) {
sources += [ "x86.c" ]
}
« no previous file with comments | « no previous file | third_party/zlib/contrib/arm/chunkcopy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698