diff options
| author | gingerBill <bill@gingerbill.org> | 2021-04-05 18:44:08 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-04-05 18:44:08 +0100 |
| commit | 394e4fcbade0bba3e875366d55ce04f8a62d9677 (patch) | |
| tree | 262fb7a11738bf4a5b1e0d102719e7af2c896907 | |
| parent | f78b2a60906220c1b785d9eb40f58a6c5e6bd2f9 (diff) | |
Add `__extendhfsf2` for macOS
| -rw-r--r-- | core/runtime/internal.odin | 5 |
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); +} |