We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5913f9a commit b16b3beCopy full SHA for b16b3be
std/portable/index.js
@@ -4,6 +4,9 @@ var globalScope = typeof window !== "undefined" && window || typeof global !== "
4
5
globalScope.ASC_TARGET = 0;
6
7
+var F64 = new Float64Array(1);
8
+var U64 = new Uint32Array(F64.buffer);
9
+
10
Object.defineProperties(
11
globalScope["i8"] = function i8(value) { return value << 24 >> 24; }
12
, {
@@ -224,7 +227,7 @@ globalScope["fmodf"] = function fmodf(x, y) {
224
227
225
228
globalScope["JSMath"] = Math;
226
229
globalScope["JSMath"].signbit = function signbit(x) {
- return (x = +x) != x ? x : x == 0 ? 1 / x == Infinity : x > 0;
230
+ F64[0] = x; return Boolean(U64[1] >>> 31);
231
}
232
233
globalScope["memory"] = (() => {
0 commit comments