tmath

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max3I

func Max3I(a, b, c int) int

Max3I returns the maximum out of three integers

func Max3Int64

func Max3Int64(a, b, c int64) int64

Max3Int64 returns the maximum out of three signed 64-bit integers

func Max3Uint64

func Max3Uint64(a, b, c uint64) uint64

Max3Uint64 returns the maximum out of three unsigned 64-bit integers

func MaxI

func MaxI(a, b int) int

MaxI returns the maximum out of two integers

func MaxInt64

func MaxInt64(a, b int64) int64

MaxInt64 returns the maximum out of two signed 64bit integers

func MaxUint64

func MaxUint64(a, b uint64) uint64

MaxUint64 returns the maximum out of two unsigned 64bit integers

func Min3I

func Min3I(a, b, c int) int

Min3I returns the minimum out of three integers

func Min3Int64

func Min3Int64(a, b, c int64) int64

Min3Int64 returns the minimum out of three signed 64-bit integers

func Min3Uint64

func Min3Uint64(a, b, c uint64) uint64

Min3Uint64 returns the minimum out of three unsigned 64-bit integers

func MinI

func MinI(a, b int) int

MinI returns the minimum out of two integers

func MinInt64

func MinInt64(a, b int64) int64

MinInt64 returns the minimum out of two signed 64-bit integers

func MinUint64

func MinUint64(a, b uint64) uint64

MinUint64 returns the minimum out of two unsigned 64-bit integers

func NextPowerOf2U16

func NextPowerOf2U16(v uint16) uint16

NextPowerOf2U16 returns the next power of 2 for a given 16bit number

func NextPowerOf2U32

func NextPowerOf2U32(v uint32) uint32

NextPowerOf2U32 returns the next power of 2 for a given 32bit number

func NextPowerOf2U64

func NextPowerOf2U64(v uint64) uint64

NextPowerOf2U64 returns the next power of 2 for a given 64bit number

Types

This section is empty.

Jump to

Keyboard shortcuts

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