Fix of bug in !floatval codegen. Added float parsing.

This commit is contained in:
Christoffer Lerno
2023-02-10 22:17:55 +01:00
parent b3f15a867c
commit 74d868d113
8 changed files with 540 additions and 29 deletions

View File

@@ -688,6 +688,7 @@ macro is_nan(x)
$endswitch;
}
macro double scalbn(double x, int n) => _scalbn(x, n);
extern fn double _atan(double x) @extern("atan");
extern fn float _atanf(float x) @extern("atanf");
@@ -696,4 +697,5 @@ extern fn float _atan2f(float, float) @extern("atan2f");
extern fn void _sincos(double, double*) @extern("sincos");
extern fn void _sincosf(float, float*) @extern("sincosf");
extern fn double _tan(double x) @extern("tan");
extern fn float _tanf(float x) @extern("tanf");
extern fn float _tanf(float x) @extern("tanf");
extern fn double _scalbn(double x, int n) @extern("scalbn");