safemath

package
v3.8.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func U256Add

func U256Add(result *big.Int, a *big.Int, b *big.Int) (*big.Int, error)

U256IntAdd safe add

func U256Div

func U256Div(result *big.Int, a *big.Int, b *big.Int) (*big.Int, error)

func U256Mod

func U256Mod(result *big.Int, a *big.Int, b *big.Int) (*big.Int, error)

func U256Mul

func U256Mul(result *big.Int, a *big.Int, b *big.Int) (*big.Int, error)

U256Mul safe mul

func U256Sub

func U256Sub(result *big.Int, a *big.Int, b *big.Int) (*big.Int, error)

U256Sub safe sub

func Uint64Add

func Uint64Add(a uint64, b uint64) (uint64, error)

Uint64Add safe add

func Uint64Mul

func Uint64Mul(a uint64, b uint64) (uint64, error)

Uint64Mul safe mul

func Uint64Sub

func Uint64Sub(a uint64, b uint64) (uint64, error)

Uint64Sub safe sub

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL