cmath-js 1.4.0 → 1.4.1
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.
- package/README.md +1 -1
- package/dist/doubles/copysign.js +1 -1
- package/dist/doubles/copysign.js.map +1 -1
- package/dist/integers/countl_one.js +1 -1
- package/dist/integers/countl_one.js.map +1 -1
- package/dist/integers/countl_zero.js +1 -1
- package/dist/integers/countl_zero.js.map +1 -1
- package/dist/integers/countr_one.js +1 -1
- package/dist/integers/countr_one.js.map +1 -1
- package/dist/integers/countr_zero.js +1 -1
- package/dist/integers/countr_zero.js.map +1 -1
- package/dist/{integers → internal}/bitsInUnsignedInteger.js.map +1 -1
- package/package.json +1 -1
- /package/dist/{integers → internal}/bitsInUnsignedInteger.d.ts +0 -0
- /package/dist/{integers → internal}/bitsInUnsignedInteger.js +0 -0
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Implementation of parts of C's & C++'s numerics libraries in TypeScript/JavaScri
|
|
|
7
7
|
- [`frexp`](https://en.cppreference.com/w/c/numeric/math/frexp)
|
|
8
8
|
- [`hypot`](https://en.cppreference.com/w/cpp/numeric/math/hypot)
|
|
9
9
|
- [`ldexp`](https://en.cppreference.com/w/c/numeric/math/ldexp)
|
|
10
|
-
- [`nan](https://en.cppreference.com/w/c/numeric/math/nan)
|
|
10
|
+
- [`nan`](https://en.cppreference.com/w/c/numeric/math/nan)
|
|
11
11
|
- [`nextafter`](https://en.cppreference.com/w/c/numeric/math/nextafter)
|
|
12
12
|
- [`pow`](https://en.cppreference.com/w/c/numeric/math/pow)
|
|
13
13
|
|
package/dist/doubles/copysign.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copysign.js","sourceRoot":"","sources":["../../src/doubles/copysign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"copysign.js","sourceRoot":"","sources":["../../src/doubles/copysign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAOlD,MAAM,UAAU,QAAQ,CAAY,GAAW,EAAa,IAAY;IACvE,OAAO,OAAO,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AACpD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bitsInUnsignedInteger } from "
|
|
1
|
+
import { bitsInUnsignedInteger } from "../internal/bitsInUnsignedInteger.js";
|
|
2
2
|
export function countl_one(...values) {
|
|
3
3
|
const digits = bitsInUnsignedInteger(values);
|
|
4
4
|
const endOfOnes = digits.indexOf(0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countl_one.js","sourceRoot":"","sources":["../../src/integers/countl_one.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"countl_one.js","sourceRoot":"","sources":["../../src/integers/countl_one.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAS7E,MAAM,UAAU,UAAU,CACzB,GAAG,MAA+F;IAElG,MAAM,MAAM,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC7C,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAEpC,IAAI,SAAS,KAAK,CAAC,CAAC,EAAE,CAAC;QACtB,OAAO,MAAM,CAAC,MAAM,CAAC;IACtB,CAAC;IACD,OAAO,SAAS,CAAC;AAClB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bitsInUnsignedInteger } from "
|
|
1
|
+
import { bitsInUnsignedInteger } from "../internal/bitsInUnsignedInteger.js";
|
|
2
2
|
export function countl_zero(fixedIntegerSizeInBits, integer) {
|
|
3
3
|
const digits = bitsInUnsignedInteger([fixedIntegerSizeInBits, integer]);
|
|
4
4
|
const endOfZeroes = digits.indexOf(1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countl_zero.js","sourceRoot":"","sources":["../../src/integers/countl_zero.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"countl_zero.js","sourceRoot":"","sources":["../../src/integers/countl_zero.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAS7E,MAAM,UAAU,WAAW,CAAC,sBAA8B,EAAE,OAAwB;IACnF,MAAM,MAAM,GAAG,qBAAqB,CAAC,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC,CAAC;IAExE,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAEtC,IAAI,WAAW,KAAK,CAAC,CAAC,EAAE,CAAC;QACxB,OAAO,MAAM,CAAC,MAAM,CAAC;IACtB,CAAC;IACD,OAAO,WAAW,CAAC;AACpB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bitsInUnsignedInteger } from "
|
|
1
|
+
import { bitsInUnsignedInteger } from "../internal/bitsInUnsignedInteger.js";
|
|
2
2
|
export function countr_one(...values) {
|
|
3
3
|
const digits = bitsInUnsignedInteger(values);
|
|
4
4
|
return digits.length - digits.lastIndexOf(0) - 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countr_one.js","sourceRoot":"","sources":["../../src/integers/countr_one.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"countr_one.js","sourceRoot":"","sources":["../../src/integers/countr_one.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAU7E,MAAM,UAAU,UAAU,CACzB,GAAG,MAA+F;IAElG,MAAM,MAAM,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC7C,OAAO,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bitsInUnsignedInteger } from "
|
|
1
|
+
import { bitsInUnsignedInteger } from "../internal/bitsInUnsignedInteger.js";
|
|
2
2
|
export function countr_zero(...values) {
|
|
3
3
|
const digits = bitsInUnsignedInteger(values);
|
|
4
4
|
return digits.length - digits.lastIndexOf(1) - 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countr_zero.js","sourceRoot":"","sources":["../../src/integers/countr_zero.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"countr_zero.js","sourceRoot":"","sources":["../../src/integers/countr_zero.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAU7E,MAAM,UAAU,WAAW,CAC1B,GAAG,MAA+F;IAElG,MAAM,MAAM,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC7C,OAAO,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitsInUnsignedInteger.js","sourceRoot":"","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"bitsInUnsignedInteger.js","sourceRoot":"","sources":["../../src/internal/bitsInUnsignedInteger.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,qBAAqB,CACpC,MAA+F;IAE/F,IAAI,OAAwB,CAAC;IAC7B,IAAI,sBAAsB,GAAW,GAAG,CAAC;IAEzC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,CAAC,OAAO,CAAC,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