mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
add null-impl for tsc_frequency for alt-platforms
This commit is contained in:
@@ -56,6 +56,12 @@ when ODIN_ARCH == .amd64 {
|
||||
}
|
||||
}
|
||||
|
||||
when ODIN_OS != .Darwin && ODIN_OS != .Linux && ODIN_OS != .FreeBSD {
|
||||
_get_tsc_frequency :: proc "contextless" () -> (u64, bool) {
|
||||
return 0, false
|
||||
}
|
||||
}
|
||||
|
||||
has_invariant_tsc :: proc "contextless" () -> bool {
|
||||
when ODIN_ARCH == .amd64 {
|
||||
return x86_has_invariant_tsc()
|
||||
|
||||
Reference in New Issue
Block a user