Index: source/libvpx/test/test_libvpx.cc |
=================================================================== |
--- source/libvpx/test/test_libvpx.cc (revision 172621) |
+++ source/libvpx/test/test_libvpx.cc (working copy) |
@@ -12,6 +12,12 @@ |
#if ARCH_X86 || ARCH_X86_64 |
extern "C" { |
#include "vpx_ports/x86.h" |
+#if CONFIG_VP8 |
+extern void vp8_rtcd(); |
+#endif |
+#if CONFIG_VP9 |
+extern void vp9_rtcd(); |
+#endif |
} |
#endif |
#include "third_party/googletest/src/include/gtest/gtest.h" |
@@ -27,19 +33,26 @@ |
#if ARCH_X86 || ARCH_X86_64 |
const int simd_caps = x86_simd_caps(); |
- if(!(simd_caps & HAS_MMX)) |
+ if (!(simd_caps & HAS_MMX)) |
append_gtest_filter(":-MMX/*"); |
- if(!(simd_caps & HAS_SSE)) |
+ if (!(simd_caps & HAS_SSE)) |
append_gtest_filter(":-SSE/*"); |
- if(!(simd_caps & HAS_SSE2)) |
+ if (!(simd_caps & HAS_SSE2)) |
append_gtest_filter(":-SSE2/*"); |
- if(!(simd_caps & HAS_SSE3)) |
+ if (!(simd_caps & HAS_SSE3)) |
append_gtest_filter(":-SSE3/*"); |
- if(!(simd_caps & HAS_SSSE3)) |
+ if (!(simd_caps & HAS_SSSE3)) |
append_gtest_filter(":-SSSE3/*"); |
- if(!(simd_caps & HAS_SSE4_1)) |
+ if (!(simd_caps & HAS_SSE4_1)) |
append_gtest_filter(":-SSE4_1/*"); |
#endif |
+#if CONFIG_VP8 |
+ vp8_rtcd(); |
+#endif |
+#if CONFIG_VP9 |
+ vp9_rtcd(); |
+#endif |
+ |
return RUN_ALL_TESTS(); |
} |