aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library.js14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/library.js b/src/library.js
index 7d94c4cd..c5880785 100644
--- a/src/library.js
+++ b/src/library.js
@@ -4716,8 +4716,8 @@ LibraryManager.library = {
} while (Math.abs(q1 - q2) / q2 > MATH_TOLERANCE);
return (ONE_SQRTPI * Math.exp(- x * x) * q2);
},
- erfcf: 'erfcf',
- erfcl: 'erfcf',
+ erfcf: 'erfc',
+ erfcl: 'erfc',
erf__deps: ['erfc'],
erf: function(x) {
var MATH_TOLERANCE = 1E-12;
@@ -4980,6 +4980,7 @@ LibraryManager.library = {
{{{ makeSetValue('sine', '0', 'sineVal', 'double') }}};
{{{ makeSetValue('cosine', '0', 'cosineVal', 'double') }}};
},
+ sincosl: 'sincos',
sincosf: function(x, sine, cosine) {
var sineVal = Math.sin(x),
@@ -4988,15 +4989,6 @@ LibraryManager.library = {
{{{ makeSetValue('cosine', '0', 'cosineVal', 'float') }}};
},
- sincosl: function(x, sine, cosine) {
- var sineVal = Math.sin(x),
- cosineVal = Math.cos(x);
- // We use double here because that is what our long doubles
- // are and long double isn't a supported type in makeSetValue.
- {{{ makeSetValue('sine', '0', 'sineVal', 'double') }}};
- {{{ makeSetValue('cosine', '0', 'cosineVal', 'double') }}};
- },
-
__div_t_struct_layout: Runtime.generateStructInfo([
['i32', 'quot'],
['i32', 'rem'],