initial commit

This commit is contained in:
air66
2019-07-24 18:16:32 +01:00
commit 5efebf4ded
8591 changed files with 899103 additions and 0 deletions

8
node_modules/es5-ext/math/imul/implement.js generated vendored Normal file
View File

@@ -0,0 +1,8 @@
"use strict";
if (!require("./is-implemented")()) {
Object.defineProperty(Math, "imul", { value: require("./shim"),
configurable: true,
enumerable: false,
writable: true });
}

5
node_modules/es5-ext/math/imul/index.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
"use strict";
module.exports = require("./is-implemented")()
? Math.imul
: require("./shim");

7
node_modules/es5-ext/math/imul/is-implemented.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
"use strict";
module.exports = function () {
var imul = Math.imul;
if (typeof imul !== "function") return false;
return imul(-1, 8) === -8;
};

17
node_modules/es5-ext/math/imul/shim.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
/* eslint no-bitwise: "off" */
// Thanks: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference
// /Global_Objects/Math/imul
"use strict";
module.exports = function (val1, val2) {
var xh = (val1 >>> 16) & 0xffff
, xl = val1 & 0xffff
, yh = (val2 >>> 16) & 0xffff
, yl = val2 & 0xffff;
// The shift by 0 fixes the sign on the high part
// the final |0 converts the unsigned value into a signed value
return (xl * yl + ((xh * yl + xl * yh) << 16 >>> 0)) | 0;
};