Index: src/third_party/fdlibm/fdlibm.js |
diff --git a/src/third_party/fdlibm/fdlibm.js b/src/third_party/fdlibm/fdlibm.js |
index 983a86c151ac36e38f30610ef6f20570e82c9831..1cc73b84a90ef7532588d2256815ca5be61587b4 100644 |
--- a/src/third_party/fdlibm/fdlibm.js |
+++ b/src/third_party/fdlibm/fdlibm.js |
@@ -23,9 +23,6 @@ |
// rempio2result is used as a container for return values of %RemPiO2. It is |
// initialized to a two-element Float64Array during genesis. |
-var kMath; |
-var rempio2result; |
- |
(function(global, utils) { |
"use strict"; |
@@ -36,15 +33,22 @@ var rempio2result; |
// Imports |
var GlobalMath = global.Math; |
+var kMath; |
var MathAbs; |
var MathExp; |
var NaN = %GetRootNaN(); |
+var rempio2result; |
utils.Import(function(from) { |
MathAbs = from.MathAbs; |
MathExp = from.MathExp; |
}); |
+utils.SetupTypedArray(function(arg1, arg2, arg3) { |
+ kMath = arg2; |
+ rempio2result = arg3; |
+}); |
+ |
// ------------------------------------------------------------------- |
define INVPIO2 = kMath[0]; |