I was wrong about Duff’s device (opens in new tab)
Duff’s device is a C language technique that looks like this: send(to, from, count) { register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case...
Read the original article