JSPM

@arithmetic-type/uint64

4.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q76875F
  • License AGPL-3.0

64-bit unsigned integer arithmetic and locic operators for JavaScript

Package Exports

  • @arithmetic-type/uint64

Readme

🐰 @arithmetic-type/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. For the 32-bit counterpart, see arithmetic-type/uint32.

let a = get64(0, 1) ;
rotr64(a, 1); // [-1, 0]

let x = get64(0xFFFFFFFF, 0xFFFFFFFF);
add64(x, x); // [-1, -2]

License Version Tests Dependencies Dev dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size