A way of manually implementing loop unrolling by interleaving two syntactic constructs of C: a do-while loop and a switch statement.
"Duff's device is a trick used to increase the efficiency of loops, particularly in the context of optimizing code for speed."