diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js index d12147f0..9c25ebce 100644 --- a/src/library.js +++ b/src/library.js @@ -883,6 +883,9 @@ var Library = { llvm_sqrt_f64: 'Math.sqrt', llvm_pow_f32: 'Math.pow', llvm_pow_f64: 'Math.pow', + ldexp: function(x, exp_) { + return x*Math.pow(2, exp_); + }, modf: function(x, intpart) { {{{ makeSetValue('intpart', 0, 'Math.floor(x)', 'double') }}} |