From 55e9b8d994061d81a23e051999751a36dc456489 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 29 Jun 2024 10:48:41 +0100 Subject: [PATCH] Use explicit calling conventions --- base/runtime/internal.odin | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/base/runtime/internal.odin b/base/runtime/internal.odin index 369df05ad..2cdac306a 100644 --- a/base/runtime/internal.odin +++ b/base/runtime/internal.odin @@ -29,7 +29,7 @@ is_power_of_two_int :: #force_inline proc "contextless" (x: int) -> bool { return (x & (x-1)) == 0 } -align_forward_int :: #force_inline proc(ptr, align: int) -> int { +align_forward_int :: #force_inline proc "odin" (ptr, align: int) -> int { assert(is_power_of_two_int(align)) p := ptr @@ -47,7 +47,7 @@ is_power_of_two_uint :: #force_inline proc "contextless" (x: uint) -> bool { return (x & (x-1)) == 0 } -align_forward_uint :: #force_inline proc(ptr, align: uint) -> uint { +align_forward_uint :: #force_inline proc "odin" (ptr, align: uint) -> uint { assert(is_power_of_two_uint(align)) p := ptr @@ -65,7 +65,7 @@ is_power_of_two_uintptr :: #force_inline proc "contextless" (x: uintptr) -> bool return (x & (x-1)) == 0 } -align_forward_uintptr :: #force_inline proc(ptr, align: uintptr) -> uintptr { +align_forward_uintptr :: #force_inline proc "odin" (ptr, align: uintptr) -> uintptr { assert(is_power_of_two_uintptr(align)) p := ptr @@ -1034,7 +1034,7 @@ divti3 :: proc "c" (a, b: i128) -> i128 { @(link_name="__fixdfti", linkage=RUNTIME_LINKAGE, require=RUNTIME_REQUIRE) -fixdfti :: proc(a: u64) -> i128 { +fixdfti :: proc "c" (a: u64) -> i128 { significandBits :: 52 typeWidth :: (size_of(u64)*8) exponentBits :: (typeWidth - significandBits - 1)