mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Corrections for FreeBSD ARM support
FreeBSD does not have the /proc file system. FreeBSD was added to the code path for aarch64 before the use of the /proc file system withf7b4b750d8
but then /proc usage was added not long after withb3269b08a1
This commit is contained in:
parent
9691a2dccf
commit
3b287770b9
@ -562,7 +562,7 @@ struct HWFeatures
|
|||||||
}
|
}
|
||||||
#endif // CV_CPUID_X86
|
#endif // CV_CPUID_X86
|
||||||
|
|
||||||
#if defined __ANDROID__ || defined __linux__ || defined __FreeBSD__ || defined __QNX__
|
#if defined __ANDROID__ || defined __linux__ || defined __QNX__
|
||||||
#ifdef __aarch64__
|
#ifdef __aarch64__
|
||||||
have[CV_CPU_NEON] = true;
|
have[CV_CPU_NEON] = true;
|
||||||
have[CV_CPU_FP16] = true;
|
have[CV_CPU_FP16] = true;
|
||||||
@ -611,7 +611,7 @@ struct HWFeatures
|
|||||||
CV_LOG_INFO(NULL, "- FP16 instructions is NOT enabled via build flags");
|
CV_LOG_INFO(NULL, "- FP16 instructions is NOT enabled via build flags");
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#elif defined __arm__ && !defined __FreeBSD__
|
#elif defined __arm__
|
||||||
int cpufile = open("/proc/self/auxv", O_RDONLY);
|
int cpufile = open("/proc/self/auxv", O_RDONLY);
|
||||||
|
|
||||||
if (cpufile >= 0)
|
if (cpufile >= 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user