diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-05-20 00:05:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-20 00:05:57 +0100 |
| commit | 8dec4f6ed332f2e78331f1b29aaaac16a851745e (patch) | |
| tree | 78156eb049aff83dd1190dff14f7d14a9739b05a /base | |
| parent | b6d5be8593414371785eda44b8135ba988831cac (diff) | |
| parent | 2183140e7162b93066e93b0e65da86b220d45ad0 (diff) | |
Merge pull request #3570 from jasonKercher/linux-arm32
Get the compiler to build and work on arm32 Linux
Diffstat (limited to 'base')
| -rw-r--r-- | base/runtime/internal.odin | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/base/runtime/internal.odin b/base/runtime/internal.odin index 3e9c524bd..aaca1e703 100644 --- a/base/runtime/internal.odin +++ b/base/runtime/internal.odin @@ -801,6 +801,10 @@ truncsfhf2 :: proc "c" (value: f32) -> __float16 { } } +@(link_name="__aeabi_d2h", linkage=RUNTIME_LINKAGE, require=RUNTIME_REQUIRE) +aeabi_d2h :: proc "c" (value: f64) -> __float16 { + return truncsfhf2(f32(value)) +} @(link_name="__truncdfhf2", linkage=RUNTIME_LINKAGE, require=RUNTIME_REQUIRE) truncdfhf2 :: proc "c" (value: f64) -> __float16 { @@ -1055,4 +1059,4 @@ __read_bits :: proc "contextless" (dst, src: [^]byte, offset: uintptr, size: uin dst[j>>3] &~= 1<<(j&7) dst[j>>3] |= the_bit<<(j&7) } -}
\ No newline at end of file +} |