Fix NEON 4444 CheckAlpha, workaround for failed bNEON detection on ARM64

This commit is contained in:
Henrik Rydgård committed 2015-05-31 12:29:08 +02:00
1 parent 7b50ec7b75
commit 2a1f6bca97
3 files changed
+13 -8

No files matched your search

+8 -3
View File
@@ -101,7 +101,7 @@ bool CheckCPUFeature(const std::string& feature)
if (!File::OpenCPPFile(file, procfile, std::ios::in))
return 0;
while (std::getline(file, line))
{
if (line.find(marker) != std::string::npos)
@@ -115,7 +115,7 @@ bool CheckCPUFeature(const std::string& feature)
}
}
}
return false;
}
@@ -170,7 +170,7 @@ void CPUInfo::Detect()
Mode64bit = false;
#endif
vendor = VENDOR_ARM;
// Get the information about the CPU
#if !defined(__linux__)
bool isVFP3 = false;
@@ -240,6 +240,11 @@ void CPUInfo::Detect()
bASIMD = CheckCPUFeature("asimd");
num_cores = GetCoreCount();
#endif
#ifdef ARM64
// Whether the above detection failed or not, on ARM64 we do have ASIMD/NEON.
bNEON = true;
bASIMD = true;
#endif
}
// Turn the cpu info into a string we can show