mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-08 01:36:47 +08:00
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:
parent
1bdcc4c3e3
commit
de07146fa4
@ -1,6 +1,6 @@
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user