Documentation
¶
Overview ¶
Package bits provides primitives for bitwise operations on 32/64 bit registers.
Index ¶
- func Clear(addr *uint32, pos int)
- func Clear64(addr *uint64, pos int)
- func Get(addr *uint32, pos int, mask int) uint32
- func Get64(addr *uint64, pos int, mask int) uint64
- func IsSet(addr *uint32, pos int) bool
- func IsSet64(addr *uint64, pos int) bool
- func Set(addr *uint32, pos int)
- func Set64(addr *uint64, pos int)
- func SetN(addr *uint32, pos int, mask int, val uint32)
- func SetN64(addr *uint64, pos int, mask int, val uint64)
- func SetTo(addr *uint32, pos int, val bool)
- func SetTo64(addr *uint64, pos int, val bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clear ¶
Clear modifies the pointed value by clearing an individual bit at the position argument.
func Clear64 ¶
Clear64 modifies the pointed value by clearing an individual bit at the position argument.
func Set64 ¶
Set64 modifies the pointed value by setting an individual bit at the position argument.
func SetN ¶
SetN modifies the pointed value by setting a value at a specific bit position and with a bitmask applied.
func SetN64 ¶
SetN64 modifies the pointed value by setting a value at a specific bit position and with a bitmask applied.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.