math

package
v1.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMask

func GetMask(x uint8) uint64

GetMask returns a bit mask filled with ones of length 'x'. e.g.: GetMask(3) => 0b00000111 GetMask(4) => 0b00001111 GetMask(5) => 0x00011111

func MSB

func MSB(x uint64) uint8

MSB returns the position of most significant bit for the given uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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