mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-26 16:23:55 +00:00
switch to read_cycle_counter_frequency from arm64_read_cycle_counter_freq, trap on invalid arch
This commit is contained in:
@@ -32,6 +32,7 @@ trap :: proc() -> ! ---
|
||||
alloca :: proc(size, align: int) -> [^]u8 ---
|
||||
cpu_relax :: proc() ---
|
||||
read_cycle_counter :: proc() -> i64 ---
|
||||
read_cycle_counter_frequency :: proc() -> i64 ---
|
||||
|
||||
count_ones :: proc(x: $T) -> T where type_is_integer(T) || type_is_simd_vector(T) ---
|
||||
count_zeros :: proc(x: $T) -> T where type_is_integer(T) || type_is_simd_vector(T) ---
|
||||
@@ -361,8 +362,6 @@ wasm_memory_atomic_notify32 :: proc(ptr: ^u32, waiters: u32) -> (waiters_woken_u
|
||||
x86_cpuid :: proc(ax, cx: u32) -> (eax, ebx, ecx, edx: u32) ---
|
||||
x86_xgetbv :: proc(cx: u32) -> (eax, edx: u32) ---
|
||||
|
||||
// Arm64 targets
|
||||
arm64_read_cycle_counter_frequency :: proc() -> i64 ---
|
||||
|
||||
|
||||
// Darwin targets only
|
||||
|
||||
Reference in New Issue
Block a user