mathutil

package
v0.0.0-...-3f3ae68 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(value *big.Int) *big.Int

Abs ...

func Andln

func Andln(value *big.Int, num int) int

Andln ANDs first word and num

func BitLen

func BitLen(value *big.Int) int

BitLen ...

func Clone

func Clone(value *big.Int) *big.Int

Clone ...

func CountBits

func CountBits(w int) int

CountBits ...

func FromTwos

func FromTwos(value *big.Int, width int) *big.Int

FromTwos ...

func Iaddn

func Iaddn(value *big.Int, num int) *big.Int

Iaddn ...

func Inotn

func Inotn(n *big.Int, width int) *big.Int

Inotn ...

func Iushrn

func Iushrn(value *big.Int, bits uint, hint int, extended bool) *big.Int

Iushrn ...

func Pow

func Pow(i, e *big.Int) *big.Int

Pow ...

func ToTwos

func ToTwos(value *big.Int, width int) *big.Int

ToTwos ...

func ToUint8Slice

func ToUint8Slice(value *big.Int, isLittleEndian bool, length int) []uint8

ToUint8Slice ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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