tiny.simd.totalLogicalProcessors
Defined in tiny.simd.
Source
Source: lib/simd/src/topology/native.zig:39
zig
pub fn totalLogicalProcessors() usize { if (comptime builtin.target.os.tag == .linux) { return linux.totalLogicalProcessors(); } if (comptime builtin.target.os.tag.isDarwin()) { return apple.totalLogicalProcessors(); } if (comptime builtin.target.os.tag == .windows) { return windows.totalLogicalProcessors(); } if (comptime builtin.target.os.tag == .emscripten) { return wasm.totalLogicalProcessors(); } if (comptime builtin.target.os.tag == .freestanding) return 1; const count = std.Thread.getCpuCount() catch 1; return std.math.clamp(count, 1, topology.max_logical_processors);}Source: lib/simd/src/root.zig:95
zig
pub const totalLogicalProcessors = topology.totalLogicalProcessors;Also reachable as
topology.totalLogicalProcessors.
Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |