Module 15 · bitset and Bit Tricks: Sixty-Four Booleans in One Word
Words, Padding, and a Sieve Performance Lab
ProReading
Maria asks why one shift can move so many answers. Kenji says the processor moves the whole bitset at once. Amara opens a two-word drawing. The useful explanation is smaller than Kenji's claim, and it also explains the boundary bugs.
Checking what this lesson needs for you…
What is inside Words, Padding, and a Sieve Performance Lab
- A word holds several answers
- Padding is outside the logical width
- A shift crosses word boundaries
- Count does not promise one CPU instruction
- Lab rules before the stopwatch
- A second lab isolates the transition shape
- Memory placement is another boundary