bv

package
v1.0.0-RC1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitPattern

type BitPattern struct {
	Width uint
	// contains filtered or unexported fields
}

func Bp

func Bp(length uint) BitPattern

func P

func P(s string) BitPattern

func (BitPattern) Match

func (bp BitPattern) Match(bv BitVector) bool

func (BitPattern) String

func (bp BitPattern) String() string

type BitVector

type BitVector struct {
	Width uint
	// contains filtered or unexported fields
}

func B

func B(s string) BitVector

func Bv

func Bv(width uint) BitVector

func Cat

func Cat(bv1 BitVector, bv2 BitVector) BitVector

func (BitVector) Equal

func (bv BitVector) Equal(_bv BitVector, strict bool) bool

func (*BitVector) From

func (bv *BitVector) From(i interface{})

func (*BitVector) Reset

func (bv *BitVector) Reset(pos int)

func (*BitVector) Set

func (bv *BitVector) Set(pos int)

func (BitVector) SignExtendTo

func (bv BitVector) SignExtendTo(width uint) BitVector

func (BitVector) String

func (bv BitVector) String() string

func (BitVector) Sub

func (bv BitVector) Sub(hi int, lo int) BitVector

func (*BitVector) Test

func (bv *BitVector) Test(pos int) bool

func (BitVector) ToUint32

func (bv BitVector) ToUint32() uint32

Jump to

Keyboard shortcuts

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