bits

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func B

func B(val bool) byte

B transforms a bool into a 1/0 byte.

func HalfCarryAdd

func HalfCarryAdd(val1 byte, val2 byte) bool

HalfCarryAdd half carries two values.

func Reset

func Reset(value byte, bit byte) byte

Reset a bit and return the new value.

func Set

func Set(value byte, bit byte) byte

Set a bit and return the new value.

func Test

func Test(value byte, bit byte) bool

Test if a bit is set.

func Val

func Val(value byte, bit byte) byte

Val returns the value of a bit bit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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