Commit 2fc56673 authored by fbarchard@google.com's avatar fbarchard@google.com

cpuid build fix for linux/non

BUG=none
TEST=none
Review URL: https://webrtc-codereview.appspot.com/366007

git-svn-id: http://libyuv.googlecode.com/svn/trunk@158 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent e3ebe7a5
......@@ -16,7 +16,7 @@ namespace libyuv {
extern "C" {
#endif
#define LIBYUV_VERSION 153
#define LIBYUV_VERSION 154
#ifdef __cplusplus
} // extern "C"
......
......@@ -48,6 +48,7 @@ extern "C" {
#endif
// based on libvpx arm_cpudetect.c
// For Arm, but testable on any CPU
int ArmCpuCaps(const char* cpuinfoname) {
int flags = 0;
FILE* fin = fopen(cpuinfoname, "r");
......@@ -86,7 +87,7 @@ int InitCpuFlags() {
if (getenv("LIBYUV_DISABLE_SSSE3")) {
cpu_info_ &= ~kCpuHasSSSE3;
}
#elif if defined(__linux__) && defined(__ARM_NEON__)
#elif defined(__linux__) && defined(__ARM_NEON__)
cpu_info_ = ArmCpuCaps("/proc/cpuinfo") | kCpuInitialized;
#elif defined(__ARM_NEON__)
// gcc -mfpu=neon defines __ARM_NEON__
......
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