Duff's Device: https://en.wikipedia.org/wiki/Duff%27s_device Very elegant use of the fall-through behavior of the swtich statement.
For those unaware, * do not use this on modern systems. * Normal for-loops are much faster than they were when Duff's Device was invented, since they take advantage of modern branch prediction.
The Duff's device is still useful for creating co-routines though; a handy way of yielding, then returning to the yield point.