Package math

import "internal/runtime/math"
Overview
Index

Overview ▾

Constants

const (
    MaxUint16  = ^uint16(0)
    MaxUint32  = ^uint32(0)
    MaxUint64  = ^uint64(0)
    MaxUintptr = ^uintptr(0)

    MaxInt64 = int64(MaxUint64 >> 1)
)

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.