File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6565#include < sys/sysctl.h>
6666#include < sys/types.h>
6767#include < unistd.h>
68- #endif /* defined(__APPLE__) && defined(__aarch64__) ) */
69- #endif /* !defined(BARE_METAL) && ! defined(__APPLE__) && !defined(__OpenBSD__ ) && ! defined(__FreeBSD__) && !defined(__QNX__) && (defined(__arm__) || defined( __aarch64__) ) */
68+ #endif /* #elif ( defined(OpenBSD) || defined(FreeBSD)) && defined(aarch64 ) */
69+ #endif /* #elif ( defined(__APPLE__)) && defined(__aarch64__) */
7070
7171#define ARM_COMPUTE_CPU_FEATURE_HWCAP_CPUID (1 << 11 )
7272#define ARM_COMPUTE_GET_FEATURE_REG (var, freg ) __asm __volatile (" MRS %0, " #freg : " =r" (var))
@@ -465,7 +465,7 @@ CpuInfo CpuInfo::build()
465465 CpuInfo info (isainfo, cpus_model);
466466 return info;
467467
468- #elif defined(__aarch64__) && defined(__APPLE__)
468+ #elif defined(__aarch64__) && defined(__APPLE__) /* #elif defined(__aarch64__) && (defined(__OpenBSD__) || defined(__FreeBSD__)) */
469469 int ncpus = get_hw_capability (" hw.perflevel0.logicalcpu" );
470470 CpuIsaInfo isainfo;
471471 std::vector<CpuModel> cpus_model (ncpus);
You can’t perform that action at this time.
0 commit comments