diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-02-05 15:19:30 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-02-05 15:19:30 +0000 |
| commit | 2a5b674d33e4f483964da119f76038457cd9f1f2 (patch) | |
| tree | 1e094b9e6ed3fa435dc5c76cdf7f4a7e740781f7 /core | |
| parent | 7944b7714f5478b9a89e3fc1e331e8090652e49e (diff) | |
Custom struct alignment
Diffstat (limited to 'core')
| -rw-r--r-- | core/_preload.odin | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/_preload.odin b/core/_preload.odin index 107e61dd2..2bb00c7f6 100644 --- a/core/_preload.odin +++ b/core/_preload.odin @@ -119,6 +119,9 @@ __debug_trap :: proc() #foreign __llvm_core "llvm.debugtrap"; __trap :: proc() #foreign __llvm_core "llvm.trap"; read_cycle_counter :: proc() -> u64 #foreign __llvm_core "llvm.readcyclecounter"; +__cpuid :: proc(level: u32, sig: ^u32) -> i32 #foreign __llvm_core "__get_cpuid"; + + // IMPORTANT NOTE(bill): Must be in this order (as the compiler relies upon it) Allocator_Mode :: enum u8 { |