cmath-js 5.0.8 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  export declare function floatFromBits(bits64: bigint): number;
2
- export declare function floatOctets(num: number): bigint;
2
+ export declare function floatToBits(num: number): bigint;
@@ -3,7 +3,7 @@ export function floatFromBits(bits64) {
3
3
  dataView.setBigUint64(0, bits64, true);
4
4
  return dataView.getFloat64(0, true);
5
5
  }
6
- export function floatOctets(num) {
6
+ export function floatToBits(num) {
7
7
  dataView.setFloat64(0, num, true);
8
8
  return dataView.getBigUint64(0, true);
9
9
  }
@@ -1,5 +1,5 @@
1
- import { floatOctets } from "../../internal/index.js";
1
+ import { floatToBits } from "../../internal/index.js";
2
2
  export function signbit(num) {
3
- return floatOctets(Number(num)) >= 1n << 63n;
3
+ return floatToBits(Number(num)) >= 1n << 63n;
4
4
  }
5
5
  //# sourceMappingURL=signbit.js.map
@@ -2,6 +2,7 @@ export { copysign } from "./copysign.ts";
2
2
  export { fabs } from "./fabs.ts";
3
3
  export { frexp, type FrexpResult } from "./frexp.ts";
4
4
  export { hypot } from "./hypot.ts";
5
+ export { iscanonical } from "./iscanonical.ts";
5
6
  export { ldexp } from "./ldexp.ts";
6
7
  export { nan } from "./nan.ts";
7
8
  export { nextafter } from "./nextafter.ts";
@@ -2,6 +2,7 @@ export { copysign } from "./copysign.js";
2
2
  export { fabs } from "./fabs.js";
3
3
  export { frexp } from "./frexp.js";
4
4
  export { hypot } from "./hypot.js";
5
+ export { iscanonical } from "./iscanonical.js";
5
6
  export { ldexp } from "./ldexp.js";
6
7
  export { nan } from "./nan.js";
7
8
  export { nextafter } from "./nextafter.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/namespace-std/doubles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAoB,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/namespace-std/doubles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAoB,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function iscanonical(_number: number): boolean;
@@ -0,0 +1,4 @@
1
+ export function iscanonical(_number) {
2
+ return true;
3
+ }
4
+ //# sourceMappingURL=iscanonical.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iscanonical.js","sourceRoot":"","sources":["../../../src/namespace-std/doubles/iscanonical.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,WAAW,CAAC,OAAe;IAC1C,OAAO,IAAI,CAAC;AACb,CAAC"}
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/oskarlh/cmath-js.git"
7
7
  },
8
- "version": "5.0.8",
8
+ "version": "5.1.0",
9
9
  "exports": {
10
10
  ".": {
11
11
  "types": "./dist/index.d.ts",