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
This commit is contained in:
fbarchard@google.com 2012-10-16 08:38:44 +00:00
parent 1bdcc4c3e3
commit de07146fa4
4 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 420
Version: 421
License: BSD
License File: LICENSE

View File

@ -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

View File

@ -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.

View File

@ -1640,4 +1640,5 @@ TEST_F(libyuvTest, NV12ToI420SplitUV) {
EXPECT_EQ(0, err);
}
} // namespace libyuv