@thi.ng/binary 3.4.14 → 3.4.15

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-02-22T11:59:16Z
3
+ - **Last updated**: 2024-02-25T14:07:53Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/mask.d.ts CHANGED
@@ -5,6 +5,8 @@ import type { FnU2 } from "@thi.ng/api";
5
5
  *
6
6
  * @example
7
7
  * ```ts
8
+ * import { defMask } from "@thi.ng/binary";
9
+ *
8
10
  * defMask(1,31).toString(16) // 7ffffffe
9
11
  * defMask(3,8).toString(16) // f8
10
12
  * ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/binary",
3
- "version": "3.4.14",
3
+ "version": "3.4.15",
4
4
  "description": "100+ assorted binary / bitwise operations, conversions, utilities, lookup tables",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,7 +35,7 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.9.25"
38
+ "@thi.ng/api": "^8.9.26"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@microsoft/api-extractor": "^7.40.1",
@@ -132,5 +132,5 @@
132
132
  "transducers-binary"
133
133
  ]
134
134
  },
135
- "gitHead": "4513a1c703bdbf0f0867f03e547e47692e415fac\n"
135
+ "gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
136
136
  }
package/swizzle.d.ts CHANGED
@@ -78,6 +78,8 @@ export declare const setLane2: (x: number, y: number, lane: Lane2) => number;
78
78
  *
79
79
  * @example
80
80
  * ```ts
81
+ * import { swizzle } from "@thi.ng/binary";
82
+ *
81
83
  * swizzle(0x12345678, 3, 2, 1, 0) // 0x78563412
82
84
  * swizzle(0x12345678, 1, 0, 3, 2) // 0x34127856
83
85
  * swizzle(0x12345678, 2, 2, 0, 0) // 0x56561212
@@ -109,6 +111,8 @@ export declare const swizzle4: (x: number, a: Lane4, b: Lane4, c: Lane4, d: Lane
109
111
  *
110
112
  * @example
111
113
  * ```ts
114
+ * import { mux } from "@thi.ng/binary";
115
+ *
112
116
  * mux(0x12345678, 0xaaaa5555, 0xffff0000)
113
117
  * // 0xaaaa5678
114
118
  *
@@ -132,6 +136,8 @@ export declare const flip8: FnN;
132
136
  *
133
137
  * @example
134
138
  * ```ts
139
+ * import { flip16 } from "@thi.ng/binary";
140
+ *
135
141
  * flip16(0x12345678)
136
142
  * // 0x56781234
137
143
  * ```