aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-05-22 16:41:32 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-05-22 16:41:32 -0700
commit2aebbd775147413cbdf473efdbc9847973f02496 (patch)
tree07799c7a451853c3972d6f89627d79c1c3749467 /src
parent7329940cbad139dbb5714fcb78efc5529781624b (diff)
exp2 in library
Diffstat (limited to 'src')
-rw-r--r--src/library.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index 6d4f048f..ff485bc3 100644
--- a/src/library.js
+++ b/src/library.js
@@ -1108,6 +1108,12 @@ var Library = {
return Math.sqrt(a*a + b*b);
},
+ // LLVM internal math
+
+ exp2: function(x) {
+ return Math.pow(2, x);
+ },
+
// unistd.h
sysconf: function(name_) {