aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2011-01-19 21:30:56 -0800
committerAlon Zakai <azakai@mozilla.com>2011-01-19 21:30:56 -0800
commit5a4041ab6925522635d143b7caeb3758c001fde5 (patch)
treeddebfcb8dc4bd79c994bf359c3d5d39a6c2fbdf4 /src/library.js
parent23515d06052a453efdb4d77fa517ebd14594d3be (diff)
a few math funcs
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index ff87374c..86067dff 100644
--- a/src/library.js
+++ b/src/library.js
@@ -879,8 +879,10 @@ var Library = {
fabsf: 'Math.abs',
ceil: 'Math.ceil',
floor: 'Math.floor',
+ llvm_sqrt_f32: 'Math.sqrt',
llvm_sqrt_f64: 'Math.sqrt',
llvm_pow_f32: 'Math.pow',
+ llvm_pow_f64: 'Math.pow',
modf: function(x, intpart) {
{{{ makeSetValue('intpart', 0, 'Math.floor(x)', 'double') }}}