mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-01-01 03:12:16 +08:00
Add a test that indicates the compiler is able to generate avx2 code.
BUG=none TESTED=out\release_x64\libyuv_unittest --gtest_filter=libyuvTest.TestCompilerHasAVX2 R=tpsiaki@google.com Review URL: https://webrtc-codereview.appspot.com/24439004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@1074 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
4667addfb8
commit
3224e43e25
@ -1,6 +1,6 @@
|
||||
Name: libyuv
|
||||
URL: http://code.google.com/p/libyuv/
|
||||
Version: 1069
|
||||
Version: 1074
|
||||
License: BSD
|
||||
License File: LICENSE
|
||||
|
||||
|
||||
@ -11,6 +11,6 @@
|
||||
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
||||
#define INCLUDE_LIBYUV_VERSION_H_
|
||||
|
||||
#define LIBYUV_VERSION 1069
|
||||
#define LIBYUV_VERSION 1074
|
||||
|
||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||
|
||||
@ -51,6 +51,15 @@ TEST_F(libyuvTest, TestCpuHas) {
|
||||
printf("Has MIPS DSPR2 %x\n", has_mips_dspr2);
|
||||
}
|
||||
|
||||
TEST_F(libyuvTest, TestCompilerHasAVX2) {
|
||||
#if defined(GCC_HAS_AVX2) || defined(CLANG_HAS_AVX2) || \
|
||||
defined(VISUALC_HAS_AVX2)
|
||||
printf("Has AVX2 1\n");
|
||||
#else
|
||||
printf("Has AVX2 0\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__) || \
|
||||
defined(_M_IX86) || defined(_M_X64)
|
||||
TEST_F(libyuvTest, TestCpuId) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user