There's a quirk in C where the cases of a switch statement can be wrapped in another control construct. A few years ago, I remember seeing an example of a piece of code that took advantage of this by wrapping the cases in a do-while loop as a way of (partially) unrolling the loop, but I'd forgotten what it was called, and couldn't seem to find it anywhere, despite searching many times.
It's called Duff's Device, and it's evil, and hideous, and brilliant, and I love it, and I'm so glad that I finally found it again.











