From ea0015403b3695d873a2c7eabc6fcdf0641b8e2e Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 17 Nov 2015 21:26:11 -0800 Subject: fround improvements --- test/unit.asm.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/unit.asm.js') diff --git a/test/unit.asm.js b/test/unit.asm.js index 77e2c5585..5695c3059 100644 --- a/test/unit.asm.js +++ b/test/unit.asm.js @@ -4,6 +4,7 @@ function () { var t = global.NaN, u = global.Infinity; var Int = 0; var Double = 0.0; + var Math_fround = global.Math.fround; function big_negative() { var temp = 0.0; @@ -64,6 +65,16 @@ function () { x = (4294967295 / 2)&-1; return x | 0; } + function fr(x) { + x = Math_fround(x); + var y = Math_fround(0), z = 0.0; + Math_fround(z); + Math_fround(y); + Math_fround(5); + Math_fround(0); + Math_fround(5.0); + Math_fround(0.0); + } function z() { } -- cgit v1.2.3