mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 02:53:07 +08:00
Detect FP16 on FreeBSD aarch64
This commit is contained in:
parent
ac0fd6aa9a
commit
f7b4b750d8
@ -533,7 +533,7 @@ struct HWFeatures
|
|||||||
}
|
}
|
||||||
#endif // CV_CPUID_X86
|
#endif // CV_CPUID_X86
|
||||||
|
|
||||||
#if defined __ANDROID__ || defined __linux__
|
#if defined __ANDROID__ || defined __linux__ || defined __FreeBSD__
|
||||||
#ifdef __aarch64__
|
#ifdef __aarch64__
|
||||||
have[CV_CPU_NEON] = true;
|
have[CV_CPU_NEON] = true;
|
||||||
have[CV_CPU_FP16] = true;
|
have[CV_CPU_FP16] = true;
|
||||||
@ -559,7 +559,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__
|
#elif defined __arm__ && !defined __FreeBSD__
|
||||||
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