bits

package
v0.0.0-...-c9bb408 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package bits provides bit manipulation functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NextPow2

func NextPow2(n uint) int

NextPow2 returns the smallest power of 2 >= n

func TrailingOnes

func TrailingOnes(x int) int

TrailingOnes returns the number of trailing one bits in x

Types

This section is empty.

Jump to

Keyboard shortcuts

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