aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-23 22:48:04 -0700
committeralon@honor <none@none>2010-10-23 22:48:04 -0700
commitadd9178a3fe696b683166377b78923cc90cb242b (patch)
tree7a35d3dd2dc0fa83b7d939a5e8671fbeffce8684
parenta4536447280ceb64be3f2fe172e261a53a9a3bcb (diff)
math funcs
-rw-r--r--src/library.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index 61149e2d..2dde32d3 100644
--- a/src/library.js
+++ b/src/library.js
@@ -197,9 +197,23 @@ var Library = {
// math.h
cos: 'Math.cos',
+ cosf: 'Math.cos',
sin: 'Math.sin',
+ sinf: 'Math.sin',
+ tan: 'Math.tan',
+ tanf: 'Math.tan',
+ acos: 'Math.acos',
+ acosf: 'Math.acos',
+ asin: 'Math.asin',
+ asinf: 'Math.asin',
+ atan: 'Math.atan',
+ atanf: 'Math.atan',
sqrt: 'Math.sqrt',
+ sqrtf: 'Math.sqrt',
+ fabs: 'Math.abs',
+ fabsf: 'Math.abs',
llvm_sqrt_f64: 'Math.sqrt',
+ llvm_pow_f32: 'Math.pow',
// unistd.h