aboutsummaryrefslogtreecommitdiff
path: root/core/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'core/runtime')
-rw-r--r--core/runtime/internal.odin5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/runtime/internal.odin b/core/runtime/internal.odin
index a38a04cb8..5381ee276 100644
--- a/core/runtime/internal.odin
+++ b/core/runtime/internal.odin
@@ -719,3 +719,8 @@ gnu_h2f_ieee :: proc "c" (value: u16) -> f32 {
gnu_f2h_ieee :: proc "c" (value: f32) -> u16 {
return truncsfhf2(value);
}
+
+@(link_name="__extendhfsf2")
+extendhfsf2 :: proc "c" (value: u16) -> f32 {
+ return gnu_h2f_ieee(value);
+}