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.
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.