bits

package
v0.0.0-...-d73fcdd Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package bits provides primitives for bitwise operations on uint32 values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(addr *uint32, pos int)

Clear modifies the pointed value by clearing an individual bit at the position argument.

func Get

func Get(addr *uint32, pos int, mask int) uint32

Get returns the pointed value at a specific bit position and with a bitmask applied.

func Set

func Set(addr *uint32, pos int)

Set modifies the pointed value by setting an individual bit at the position argument.

func SetN

func SetN(addr *uint32, pos int, mask int, val uint32)

SetN modifies the pointed value by setting a value at a specific bit position and with a bitmask applied.

Types

This section is empty.

Jump to

Keyboard shortcuts

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