Update dist files; Also parse name and source mapping sections in lib/parse

This commit is contained in:
dcodeIO
2018-04-04 03:41:04 +02:00
parent c45a35b1c1
commit acfef646ef
15 changed files with 290 additions and 89 deletions

View File

@ -2047,7 +2047,9 @@ export namespace NativeMathf {
}
export function random(): f32 {
return <f32>NativeMath.random();
var f: f32; // FIXME: demoting from f64 to f32 might yield 1.0f
do f = <f32>NativeMath.random(); while (f == 1.0);
return f;
}
export function round(x: f32): f32 { // see: musl/src/math/roundf.c