(low)
| 26 | // their low/high bits. creating a Int is slower compared to just using this |
| 27 | // function |
| 28 | export function lohi_from_one(low) { |
| 29 | if (low instanceof Int) { |
| 30 | return low._u32.slice(); |
| 31 | } |
| 32 | |
| 33 | if (check_not_in_range(low)) { |
| 34 | throw TypeError(`low not a 32-bit integer: ${low}`); |
| 35 | } |
| 36 | |
| 37 | return [low >>> 0, low < 0 ? -1 >>> 0 : 0]; |
| 38 | } |
| 39 | |
| 40 | // immutable 64-bit integer |
| 41 | export class Int { |
no test coverage detected