diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-02-21 11:53:14 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-02-21 11:53:14 -0800 |
commit | 1e53c3f4776ce442a63fdc9548b2cb9134813392 (patch) | |
tree | 2afd5a4377a96c4c43cb42889d435987e7c784d2 /test/unit.asm.js | |
parent | 2532fb4f2ffac65e287f7a26a4b84e19a83f42e5 (diff) | |
download | binaryen-1e53c3f4776ce442a63fdc9548b2cb9134813392.tar.gz binaryen-1e53c3f4776ce442a63fdc9548b2cb9134813392.tar.bz2 binaryen-1e53c3f4776ce442a63fdc9548b2cb9134813392.zip |
support asm.js ceil
Diffstat (limited to 'test/unit.asm.js')
-rw-r--r-- | test/unit.asm.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js index e539c6139..491f90835 100644 --- a/test/unit.asm.js +++ b/test/unit.asm.js @@ -6,6 +6,7 @@ function asm() { var Double = 0.0; var Math_fround = global.Math.fround; var Math_abs = global.Math.abs; + var Math_ceil = global.Math.ceil; function big_negative() { var temp = 0.0; @@ -135,6 +136,13 @@ function asm() { h(i | 0); } } + function ceiling_32_64(u, B) { + u = Math_fround(u); + B = +B; + var temp = Math_fround(0); + temp = Math_fround(Math_ceil(B)); + temp = Math_fround(u * Math_fround(Math_ceil(Math_fround(B)))); + } function z() { } |