Commit de07146f authored by fbarchard@google.com's avatar fbarchard@google.com

ifdef around mips detect code

BUG=none
TEST=build on x86 linux
Review URL: https://webrtc-codereview.appspot.com/889005

git-svn-id: http://libyuv.googlecode.com/svn/trunk@421 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 1bdcc4c3
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 420
Version: 421
License: BSD
License File: LICENSE
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 420
#define LIBYUV_VERSION 421
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
......@@ -118,6 +118,7 @@ int ArmCpuCaps(const char* cpuinfo_name) {
return 0;
}
#if defined(__mips__) && defined(__linux__)
static int MipsCpuCaps(const char* search_string) {
const char* file_name = "/proc/cpuinfo";
char cpuinfo_line[256];
......@@ -134,6 +135,7 @@ static int MipsCpuCaps(const char* search_string) {
/* Did not find string in the proc file, or not Linux ELF. */
return 0;
}
#endif
// CPU detect function for SIMD instruction sets.
// TODO(fbarchard): Use constant if/when valgrind says cpu_info is initialized.
......
......@@ -1640,4 +1640,5 @@ TEST_F(libyuvTest, NV12ToI420SplitUV) {
EXPECT_EQ(0, err);
}
} // namespace libyuv
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment