12#include "xtc_export.h"
25XTC_API
int __os_ncpus(
void);
26XTC_API
int __os_ncpus_perf(
void);
27XTC_API
int __os_ncpus_effic(
void);
28XTC_API
int __os_numa_nnodes(
void);
29XTC_API
int __os_numa_node_of_cpu(
int cpu);
30XTC_API
int __os_numa_current_node(
void);
31XTC_API int64_t __os_mem_max(
void);
41void __xtc_os_cgroup_cpu_path_override(
const char *path);
42void __xtc_os_cgroup_mem_path_override(
const char *path);
54#if defined(__GNUC__) || defined(__clang__)
55# if defined(__i386__) || defined(__x86_64__)
56 __asm__ __volatile__(
"pause" :::
"memory");
57# elif defined(__aarch64__) || defined(__arm__)
58 __asm__ __volatile__(
"yield" :::
"memory");
60 __asm__ __volatile__(
"" :::
"memory");