Documentation ¶ Index ¶ func Lsb(n int) int 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. Source Files ¶ View all Source files power_of_four.go Click to show internal directories. Click to hide internal directories.