The Algorithms logo
The Algorithms

Bit Manipulation

Binary Xor Operator

Is Power of Two

Index of Rightmost Set Bit

Count Number of One Bits

Binary or Operator

Binary Count Setbits

Highest Set Bit

Binary Count Trailing Zeros

Binary and Operator

Binary Twos Complement

Single Bit Manipulation Operations

Count 1s Brian Kernighan Method

Gray Code Sequence

Next Power Of Two

Count of Set Bits

Count of Trailing Ciphers in Factorial N

Count Bits Flip

Binary Count Trailing Zeroes

Single Bit Binary Operations