| 824 | |
| 825 | extern _Atomic(size_t) _mi_numa_node_count; |
| 826 | static inline int _mi_os_numa_node(mi_os_tld_t* tld) { |
| 827 | if mi_likely(mi_atomic_load_relaxed(&_mi_numa_node_count) == 1) { return 0; } |
| 828 | else return _mi_os_numa_node_get(tld); |
| 829 | } |
| 830 | static inline size_t _mi_os_numa_node_count(void) { |
| 831 | const size_t count = mi_atomic_load_relaxed(&_mi_numa_node_count); |
| 832 | if mi_likely(count > 0) { return count; } |
no outgoing calls
no test coverage detected