@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 +1 -1
- package/mask.d.ts +2 -0
- package/package.json +3 -3
- package/swizzle.d.ts +6 -0
package/CHANGELOG.md
CHANGED
package/mask.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/binary",
|
|
3
|
-
"version": "3.4.
|
|
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.
|
|
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": "
|
|
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
|
* ```
|