@thi.ng/binary 3.4.14 → 3.4.16
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/README.md +1 -12
- package/mask.d.ts +2 -0
- package/package.json +3 -3
- package/swizzle.d.ts +6 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
<!-- Please see: https://github.com/thi-ng/umbrella/blob/develop/CONTRIBUTING.md#changes-to-readme-files -->
|
|
3
|
-
> [!IMPORTANT]
|
|
4
|
-
> ‼️ Announcing the thi.ng user survey 2024 📋
|
|
5
|
-
>
|
|
6
|
-
> [Please participate in the survey here!](https://forms.gle/XacbSDEmQMPZg8197)\
|
|
7
|
-
> (open until end of February)
|
|
8
|
-
>
|
|
9
|
-
> **To achieve a better sample size, I'd highly appreciate if you could
|
|
10
|
-
> circulate the link to this survey in your own networks.**
|
|
11
|
-
>
|
|
12
|
-
> [Discussion](https://github.com/thi-ng/umbrella/discussions/447)
|
|
13
|
-
|
|
14
3
|
# 
|
|
15
4
|
|
|
16
5
|
[](https://www.npmjs.com/package/@thi.ng/binary)
|
|
@@ -22,7 +11,7 @@
|
|
|
22
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
23
12
|
> and anti-framework.
|
|
24
13
|
>
|
|
25
|
-
> 🚀
|
|
14
|
+
> 🚀 Please help me to work full-time on these projects by [sponsoring me on
|
|
26
15
|
> GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
|
|
27
16
|
|
|
28
17
|
- [About](#about)
|
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.16",
|
|
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.27"
|
|
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": "d660ae8fd1bf64d919b4334f19509f1f539d70f6\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
|
* ```
|