extra-bit 2.2.38 → 2.2.39

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.
Files changed (2) hide show
  1. package/index.d.ts +7 -7
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * [📘](https://github.com/nodef/extra-bit/wiki/get)
4
4
  * @param x an int32
5
5
  * @param i bit index
6
- * @param w bit width (1)
6
+ * @param w bit width [1]
7
7
  */
8
8
  declare function get(x: number, i: number, w?: number): number;
9
9
  /**
@@ -18,8 +18,8 @@ declare function getAs(x: number, m: number): number;
18
18
  * [📘](https://github.com/nodef/extra-bit/wiki/set)
19
19
  * @param x an int32
20
20
  * @param i bit index
21
- * @param v bit value (1)
22
- * @param w bit width (1)
21
+ * @param v bit value [1]
22
+ * @param w bit width [1]
23
23
  */
24
24
  declare function set(x: number, i: number, v?: number, w?: number): number;
25
25
  /**
@@ -27,7 +27,7 @@ declare function set(x: number, i: number, v?: number, w?: number): number;
27
27
  * [📘](https://github.com/nodef/extra-bit/wiki/setAs)
28
28
  * @param x an int32
29
29
  * @param m bit mask
30
- * @param f bit value (1)
30
+ * @param f bit value [1]
31
31
  */
32
32
  declare function setAs(x: number, m: number, f?: number): number;
33
33
  /**
@@ -35,7 +35,7 @@ declare function setAs(x: number, m: number, f?: number): number;
35
35
  * [📘](https://github.com/nodef/extra-bit/wiki/toggle)
36
36
  * @param x an int32
37
37
  * @param i bit index
38
- * @param w bit width (1)
38
+ * @param w bit width [1]
39
39
  */
40
40
  declare function toggle(x: number, i: number, w?: number): number;
41
41
  /**
@@ -51,7 +51,7 @@ declare function toggleAs(x: number, m: number): number;
51
51
  * @param x an int32
52
52
  * @param i first bit index
53
53
  * @param j second bit index
54
- * @param w bit width (1)
54
+ * @param w bit width [1]
55
55
  */
56
56
  declare function swap(x: number, i: number, j: number, w?: number): number;
57
57
  /**
@@ -76,7 +76,7 @@ declare function count(x: number): number;
76
76
  * Calculate n-bit parity.
77
77
  * [📘](https://github.com/nodef/extra-bit/wiki/parity)
78
78
  * @param x an int32
79
- * @param n number of bits (1)
79
+ * @param n number of bits [1]
80
80
  */
81
81
  declare function parity(x: number, n?: number): number;
82
82
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "extra-bit",
3
- "version": "2.2.38",
3
+ "version": "2.2.39",
4
4
  "description": "A collection of common bitwise operations.",
5
5
  "sideEffects": false,
6
6
  "main": "index.js",