aboutsummaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2017-10-02 12:44:09 -0700
committerCommit Bot <commit-bot@chromium.org>2017-10-02 22:32:54 +0000
commitbde789b1763af8021c4d295d80e8fd2d27ffc019 (patch)
tree9e7413eb3a04c025d65214fa264041af8a4a2c2f /BUILD.gn
parent311add63c2e73cf50cc0e89cf94ebf3fc5632560 (diff)
downloadlibyuv-bde789b1763af8021c4d295d80e8fd2d27ffc019.tar.gz
Hamming Distance SSE2 and AVX2 optimized
Bug: None Test: None Change-Id: Id52663f9c957aac3172fba92d888ad1b041d5cf0 Reviewed-on: https://chromium-review.googlesource.com/692981 Reviewed-by: Cheng Wang <wangcheng@google.com> Commit-Queue: Frank Barchard <fbarchard@google.com>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn8
1 files changed, 6 insertions, 2 deletions
diff --git a/BUILD.gn b/BUILD.gn
index b0c43725..52301d12 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -158,9 +158,13 @@ static_library("libyuv_internal") {
}
# To enable AVX2 or other cpu optimization, pass flag here
- # cflags = [ "-mavx2", "-mpopcnt", "-mavx2", "-mfma" ]
if (!is_win) {
- cflags = [ "-ffp-contract=fast" ] # Enable fma vectorization for NEON.
+ cflags = [
+ # "-mpopcnt",
+ # "-mavx2",
+ # "-mfma",
+ "-ffp-contract=fast", # Enable fma vectorization for NEON.
+ ]
}
}
if (libyuv_use_neon) {