math

Imports

Imports #

"internal/goarch"

Constants & Variables

MaxUintptr const #

const MaxUintptr = *ast.UnaryExpr

Functions

Add64 function #

Add64 returns the sum with carry of x, y and carry: sum = x + y + carry. The carry input must be 0 or 1; otherwise the behavior is undefined. The carryOut output is guaranteed to be 0 or 1. This function's execution time does not depend on the inputs. On supported platforms this is an intrinsic lowered by the compiler.

func Add64(x uint64, y uint64, carry uint64) (sum uint64, carryOut uint64)

Mul64 function #

Mul64 returns the 128-bit product of x and y: (hi, lo) = x * y with the product bits' upper half returned in hi and the lower half returned in lo. This is a copy from math/bits.Mul64 On supported platforms this is an intrinsic lowered by the compiler.

func Mul64(x uint64, y uint64) (hi uint64, lo uint64)

MulUintptr function #

MulUintptr returns a * b and whether the multiplication overflowed. On supported platforms this is an intrinsic lowered by the compiler.

func MulUintptr(a uintptr, b uintptr) (uintptr, bool)

Generated with Arrow