Home | History | Annotate | Download | only in wasm

Lines Matching defs:fround

72     var fround = stdlib.Math.fround;
87 if (StdlibMathSqrt(fround(256.0)) != fround(16.0)) return 0;
89 if (StdlibMathCeil(fround(123.7)) != fround(124.0)) return 0;
91 if (StdlibMathFloor(fround(123.7)) != fround(123.0)) return 0;
93 if (StdlibMathAbs(fround(-123.0)) != fround(123.0)) return 0;
95 if (StdlibMathMin(fround(123.4),
96 fround(1236.4)) != fround(123.4)) return 0;
98 if (StdlibMathMax(fround(123.4), fround(1236.4))
99 != fround(1236.4)) return 0;
159 var fround = stdlib.Math.fround;
160 var fround2 = stdlib.Math.fround;
178 function ceil_f32(x) { x = fround(x); return fround(ceil(x)); }
181 function floor_f32(x) { x = fround(x); return fround(floor(x)); }
184 function sqrt_f32(x) { x = fround(x); return fround(sqrt(x)); }
187 function abs_f32(x) { x = fround(x); return fround(abs(x)); }
207 function fround_i32(x) { x = x | 0; return fround(x|0); }
208 function fround_u32(x) { x = x | 0; return fround(x>>>0); }
209 function fround_f32(x) { x = fround(x); return fround(x); }
210 function fround_f64(x) { x = +x; return fround(x); }
220 x = fround(x); y = fround(y); return fround(min(x, y)); }
225 x = fround(x); y = fround(y); return fround(max(x, y)); }
288 f32: function(x) { return Math.fround(x); },
307 fround: ['i32', 'u32', 'f32', 'f64'],
333 if (func === 'fround') {
334 // fround returns f32 regardless of input.