mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 20:58:15 +00:00
Add intrinsics.x86_cpuid and intrinsics.x86_xgetbv
This commit is contained in:
@@ -278,6 +278,10 @@ wasm_memory_size :: proc(index: uintptr) -> int ---
|
||||
wasm_memory_atomic_wait32 :: proc(ptr: ^u32, expected: u32, timeout_ns: i64) -> u32 ---
|
||||
wasm_memory_atomic_notify32 :: proc(ptr: ^u32, waiters: u32) -> (waiters_woken_up: u32) ---
|
||||
|
||||
// x86 Targets (i386, amd64)
|
||||
cpuid :: proc(ax, cx: u32) -> (eax, ebc, ecx, edx: u32) ---
|
||||
xgetbv :: proc(cx: u32) -> (eax, edx: u32) ---
|
||||
|
||||
|
||||
// Darwin targets only
|
||||
objc_object :: struct{}
|
||||
|
||||
@@ -121,4 +121,5 @@ foreign _ {
|
||||
@(link_name = "llvm.x86.ssse3.psign.w.128")
|
||||
psignw128 :: proc(a, b: i16x8) -> i16x8 ---
|
||||
@(link_name = "llvm.x86.ssse3.psign.d.128")
|
||||
psignd128 :: proc(a, b: i32x4) -> i32x4 ---}
|
||||
psignd128 :: proc(a, b: i32x4) -> i32x4 ---
|
||||
}
|
||||
Reference in New Issue
Block a user