Duff's Device
ה' מרחשון תשס"ז - October 26, 2006No C programmer can call himself (or herself) a real programmer without having seen (and been amazed by) Duff's Device. It was invented as a more efficient alternative to regular loop unrolling used in copying bytes from memory to a register (each byte went to the same address in memory), by handling the case when there are "leftover" bytes after a full unroll.
(more...)