diff options
author | fbarchard@google.com <fbarchard@google.com@16f28f9a-4ce2-e073-06de-1de4eb20be90> | 2012-09-25 19:13:04 +0000 |
---|---|---|
committer | fbarchard@google.com <fbarchard@google.com@16f28f9a-4ce2-e073-06de-1de4eb20be90> | 2012-09-25 19:13:04 +0000 |
commit | 78070bc1ba0978000268f919f1138bede28df436 (patch) | |
tree | 2b5abaf8b18cee36b740fc2f684561879261b46d /unit_test/cpu_test.cc | |
parent | cad0ad303cc84195646fbb57014aa73bbe986c48 (diff) | |
download | libyuv-78070bc1ba0978000268f919f1138bede28df436.tar.gz |
Added CPUID change to detect AVX2.
BUG=98
TEST=none
Review URL: https://webrtc-codereview.appspot.com/839004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@373 16f28f9a-4ce2-e073-06de-1de4eb20be90
Diffstat (limited to 'unit_test/cpu_test.cc')
-rw-r--r-- | unit_test/cpu_test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unit_test/cpu_test.cc b/unit_test/cpu_test.cc index 5be4e0c2..fbf6da92 100644 --- a/unit_test/cpu_test.cc +++ b/unit_test/cpu_test.cc @@ -37,6 +37,8 @@ TEST_F(libyuvTest, TestCpuHas) { printf("Has SSE4.2 %x\n", has_sse42); int has_avx = TestCpuFlag(kCpuHasAVX); printf("Has AVX %x\n", has_avx); + int has_avx2 = TestCpuFlag(kCpuHasAVX2); + printf("Has AVX2 %x\n", has_avx2); } #if defined(__i386__) || defined(__x86_64__) || \ |