3 ms·
Duff's version will always work for as long as compilers remain compatible with ANSI C. It's a clever trick that takes advantage of the precise definition of a
by eridius 12y ago
Duff's version will always work for as long as compilers remain compatible with ANSI C. It's a clever trick that takes advantage of the precise definition of a switch in the C standard (as opposed to taking advantage of compiler-specific implementation details).
- sago 12y agoIt still amazes me it works, not it amazes me it still works. I just mean that even knowing why and how it works it still looks like it is malformed.