mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-06 06:38:20 +00:00
20 lines
449 B
Odin
20 lines
449 B
Odin
#+build wasm32, wasm64p32
|
|
package sysinfo
|
|
|
|
@(private)
|
|
_cpu_core_count :: proc "contextless" () -> (physical: int, logical: int, ok: bool) {
|
|
return 0, 0, false
|
|
}
|
|
|
|
CPU_Feature :: enum u64 {}
|
|
CPU_Features :: distinct bit_set[CPU_Feature; u64]
|
|
|
|
@(private)
|
|
_cpu_features :: proc "contextless" () -> (features: CPU_Features) {
|
|
return {}
|
|
}
|
|
|
|
@(private)
|
|
_cpu_name :: proc() -> (name: string) {
|
|
return "wasm32" when ODIN_ARCH == .wasm32 else "wasm64p32"
|
|
} |