Bitmanipulation
Bit manipulation refers to the direct manipulation of individual bits within binary data. It is a low-level technique used to implement flags, compact data representations, and performance-critical algorithms in systems programming, embedded contexts, and performance-sensitive software. Most programming languages expose a set of bitwise operations that operate on integers and, in some cases, on other integral types.
The core operations include AND, OR, XOR, and NOT, which combine or invert bits. Shifts move bits
Rotations are related operations that move bits around in a circular fashion, producing rotate-left and rotate-right
Common applications include managing flags and permissions efficiently, packing data into compact formats for storage or