extra-bit.web 2.2.38 → 2.2.40

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 (3) hide show
  1. package/README.md +16 -16
  2. package/index.d.ts +7 -7
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -90,19 +90,19 @@ bit.signExtend(15, 4);
90
90
  [![Maintainability](https://api.codeclimate.com/v1/badges/fa297c53c53f4e01bce8/maintainability)](https://codeclimate.com/github/nodef/extra-bit/maintainability)
91
91
 
92
92
 
93
- [get]: https://nodef.github.io/extra-bit/functions/get.html
94
- [getAs]: https://nodef.github.io/extra-bit/functions/getAs.html
95
- [set]: https://nodef.github.io/extra-bit/functions/set.html
96
- [setAs]: https://nodef.github.io/extra-bit/functions/setAs.html
97
- [toggle]: https://nodef.github.io/extra-bit/functions/toggle.html
98
- [toggleAs]: https://nodef.github.io/extra-bit/functions/toggleAs.html
99
- [swap]: https://nodef.github.io/extra-bit/functions/swap.html
100
- [scan]: https://nodef.github.io/extra-bit/functions/scan.html
101
- [scanReverse]: https://nodef.github.io/extra-bit/functions/scanReverse.html
102
- [count]: https://nodef.github.io/extra-bit/functions/count.html
103
- [parity]: https://nodef.github.io/extra-bit/functions/parity.html
104
- [rotate]: https://nodef.github.io/extra-bit/functions/rotate.html
105
- [reverse]: https://nodef.github.io/extra-bit/functions/reverse.html
106
- [merge]: https://nodef.github.io/extra-bit/functions/merge.html
107
- [interleave]: https://nodef.github.io/extra-bit/functions/interleave.html
108
- [signExtend]: https://nodef.github.io/extra-bit/functions/signExtend.html
93
+ [get]: https://github.com/nodef/extra-bit/wiki/get
94
+ [getAs]: https://github.com/nodef/extra-bit/wiki/getAs
95
+ [set]: https://github.com/nodef/extra-bit/wiki/set
96
+ [setAs]: https://github.com/nodef/extra-bit/wiki/setAs
97
+ [toggle]: https://github.com/nodef/extra-bit/wiki/toggle
98
+ [toggleAs]: https://github.com/nodef/extra-bit/wiki/toggleAs
99
+ [swap]: https://github.com/nodef/extra-bit/wiki/swap
100
+ [scan]: https://github.com/nodef/extra-bit/wiki/scan
101
+ [scanReverse]: https://github.com/nodef/extra-bit/wiki/scanReverse
102
+ [count]: https://github.com/nodef/extra-bit/wiki/count
103
+ [parity]: https://github.com/nodef/extra-bit/wiki/parity
104
+ [rotate]: https://github.com/nodef/extra-bit/wiki/rotate
105
+ [reverse]: https://github.com/nodef/extra-bit/wiki/reverse
106
+ [merge]: https://github.com/nodef/extra-bit/wiki/merge
107
+ [interleave]: https://github.com/nodef/extra-bit/wiki/interleave
108
+ [signExtend]: https://github.com/nodef/extra-bit/wiki/signExtend
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.web",
3
- "version": "2.2.38",
3
+ "version": "2.2.40",
4
4
  "description": "A collection of common bitwise operations {web}.",
5
5
  "sideEffects": false,
6
6
  "main": "index.js",