mathx

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

func Max[T int | uint | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64](max, val T) T

func Min

func Min[T int | uint | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64](min, val T) T

func Next2Power

func Next2Power(x int64) int64

Next2Power rounds x up to the next power of 2, if it's not already one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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