Implement f16 functionality

This commit is contained in:
gingerBill
2021-04-01 10:06:00 +01:00
parent a00d7cc705
commit 54e6c50769
16 changed files with 499 additions and 76 deletions
+3
View File
@@ -25,6 +25,9 @@ generic_ftoa :: proc(buf: []byte, val: f64, fmt: byte, precision, bit_size: int)
bits: u64;
flt: ^Float_Info;
switch bit_size {
case 16:
bits = u64(transmute(u16)f16(val));
flt = &_f16_info;
case 32:
bits = u64(transmute(u32)f32(val));
flt = &_f32_info;