UInt64.ofNat reduces Nat values modulo the word radix.
@[extern lean_hex_uint64_mul_hi]
The high 64 bits of the product a * b, viewed in radix 2^64.
Equations
- a.mulHi b = UInt64.ofNat (a.toNat * b.toNat / UInt64.word)
Instances For
@[extern lean_hex_uint64_add_carry]
Add a, b, and an incoming carry bit, returning the wrapped low word and the
outgoing carry bit.
Equations
Instances For
@[extern lean_hex_uint64_sub_borrow]
Subtract b and an incoming borrow bit from a, returning the wrapped low
word and the outgoing borrow bit.