3 ms·
Probably not for production use (as most "interesting" code isn't): https://en.m.wikipedia.org/wiki/Duff's_device https://en.m.wikipedia.org/wiki/Duff's_device
by pkkim 10y ago
Probably not for production use (as most "interesting" code isn't): https://en.m.wikipedia.org/wiki/Duff's_device https://en.m.wikipedia.org/wiki/Duff's_device
- ConceptJunkie 10y agoYou say that, but I pulled out several instances of Duff's Device from production code a few years ago, and replaced them with memcpy( ) and memcmp( ) as appropriate. This isn't 1986 any more.