bit β namespace overviewΒΆ
The bit namespace holds the bit-level standard library: every operation works on one bit at a time, or on a vector of n bits packed in memory. Use it when you need precise single-bit control β boolean logic, bit-shift loops, individual flag manipulation.
Bit-level operations are simpler and easier to reason about than the hex equivalents, but they are slower per useful value computed: a single decimal digit takes roughly four bit operations vs one hex operation. For arithmetic-heavy code prefer the hex namespace.