bits

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(x uint32, ub, lb int) uint32

func Get

func Get(x uint32, ub, lb int) uint32

func GetBit

func GetBit(x uint32, bit int) uint32

func Join

func Join(vecs ...Vec) uint32

func Mask

func Mask(nbits int) uint32

func Remap

func Remap(i uint32, fromub, fromlb, toub, tolb int) uint32

func RemapBit

func RemapBit(i uint32, from, to int) uint32

func Repeat

func Repeat(bit uint32, n int) uint32

func Set

func Set(x uint32, ub, lb int, v uint32) uint32

func Sext

func Sext(x uint32, width int) uint32

Types

type Vec

type Vec struct {
	B  uint32
	Sz int
}

Jump to

Keyboard shortcuts

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