power_of_four

package
v0.0.0-...-1c6761d Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lsb

func Lsb(n int) int

Lsb calculates the position of the least significant bit (LSB) set in the binary representation of an integer. It returns the position (0-based) of the LSB if one is set; otherwise, it returns -1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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