https://github.com/arithmetic-type/uint64
:rabbit: 64-bit unsigned integer arithmetic and logic operators for JavaScript
https://github.com/arithmetic-type/uint64
64-bit agpl integer-arithmetic javascript unsigned-integers
Last synced: about 1 month ago
JSON representation
:rabbit: 64-bit unsigned integer arithmetic and logic operators for JavaScript
- Host: GitHub
- URL: https://github.com/arithmetic-type/uint64
- Owner: arithmetic-type
- License: agpl-3.0
- Created: 2014-11-05T20:43:28.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2025-03-13T02:19:44.000Z (2 months ago)
- Last Synced: 2025-04-10T19:04:58.285Z (about 1 month ago)
- Topics: 64-bit, agpl, integer-arithmetic, javascript, unsigned-integers
- Language: JavaScript
- Homepage: https://arithmetic-type.github.io/uint64
- Size: 2.25 MB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:rabbit: [@arithmetic-type/uint64](https://arithmetic-type.github.io/uint64)
==64-bit unsigned integer arithmetic and logic operators for JavaScript.
Implemented using big endian arrays of two signed 32-bit integers.Used in [js-hash](https://github.com/make-github-pseudonymous-again/js-hash).
For the 32-bit counterpart, see [arithmetic-type/uint32](https://github.com/arithmetic-type/uint32).```js
let a = get64(0, 1) ;
rotr64(a, 1); // [-1, 0]let x = get64(0xFFFFFFFF, 0xFFFFFFFF);
add64(x, x); // [-1, -2]
```[](https://raw.githubusercontent.com/arithmetic-type/uint64/main/LICENSE)
[](https://www.npmjs.org/package/@arithmetic-type/uint64)
[](https://github.com/arithmetic-type/uint64/actions/workflows/ci.yml?query=branch:main)
[](https://github.com/arithmetic-type/uint64/network/dependencies)
[](https://github.com/arithmetic-type/uint64/issues)
[](https://www.npmjs.org/package/@arithmetic-type/uint64)[](https://codeclimate.com/github/arithmetic-type/uint64/issues)
[](https://codeclimate.com/github/arithmetic-type/uint64/trends/churn)
[](https://codecov.io/gh/arithmetic-type/uint64)
[](https://codeclimate.com/github/arithmetic-type/uint64/trends/technical_debt)
[](https://arithmetic-type.github.io/uint64/source.html)
[](https://bundlephobia.com/result?p=@arithmetic-type/uint64)