package math

import "runtime/internal/math"

Index

Constants

const MaxUintptr = ^uintptr(0)

Functions

func Mul64

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

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 MulUintptr

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

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

Source Files

math.go

Version
v1.21.12
Published
Jun 27, 2024
Platform
js/wasm
Imports
1 packages
Last checked
2 minutes ago

Tools for package owners.