math

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: MIT Imports: 0 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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