* Convert and format a number as a string representing a 32-bit unsigned hexadecimal number. * @param value The value to format as a string. * @returns A hexadecimal string representing the value.
(value: number)
| 177 | * @returns A hexadecimal string representing the value. |
| 178 | */ |
| 179 | function toHexU32(value: number): string { |
| 180 | // unsigned right shift of zero ensures an unsigned 32-bit number |
| 181 | return (value >>> 0).toString(16).padStart(8, '0'); |
| 182 | } |
| 183 | |
| 184 | function fk(index: number, b: number, c: number, d: number): [number, number] { |
| 185 | if (index < 20) { |