math

package
v0.32.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntegerSquareRootPrysm added in v0.12.1

func IntegerSquareRootPrysm(n uint64) uint64

func IntegerSquareroot

func IntegerSquareroot(n uint64) uint64

The largest integer x such that x**2 is less than or equal to n.

func IsPowerOfTwo

func IsPowerOfTwo(n uint64) bool

func MaxU64

func MaxU64(a uint64, b uint64) uint64

func MinU64

func MinU64(a uint64, b uint64) uint64

func NextPowerOfTwo

func NextPowerOfTwo(in uint64) uint64

NextPowerOfTwo returns the next power of two for the given number. It returns the number itself if it's a power of two.

Types

This section is empty.

Jump to

Keyboard shortcuts

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