浏览代码

Add `__extendhfsf2` for macOS

gingerBill 4 年之前
父节点
当前提交
394e4fcbad
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      core/runtime/internal.odin

+ 5 - 0
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);
+}