package
Version:
v0.0.0-...-95aab37
Opens a new window with list of versions in this module.
Published: Aug 14, 2021
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
-
func Adc(a, b, carry uint64) (uint64, uint64)
-
func Load4(b []byte) uint64
-
func Mac(a, b, c, carry uint64) (uint64, uint64)
-
func Sbb(a, b, borrow uint64) (uint64, uint64)
-
type Uint128
Adc Computes a + b + carry, returning the result and the new carry over.
Load4 interprets a 4-byte unsigned little endian byte-slice as uint64
Mac Computes a + (b * c) + carry, returning the result and the new carry over.
Sbb Computes a - (b + borrow), returning the result and the new borrow.
type Uint128 struct{ H, L uint64 }
FromU64 converts a uint64 into a uint128
Mul multiplies two Uint128 numbers
MulU64 multiplies a uint64 with a uint128
Sub subs a uint64 number from u
ToU64 converts a uint128 into a uint64
by keeping the lower bits
Source Files
¶
Click to show internal directories.
Click to hide internal directories.