2 ms·
No argument there. I'm a fan of strict-aliasing optimizations. :)
by pcwalton 11y ago
No argument there. I'm a fan of strict-aliasing optimizations. :)
- nkurz 11y agoFor possible clarity, despite arguing against "unwanted" optimizations, I'll mention that I'm also in favor of strict aliasing. That's the sort of optimization I like, especially if it's "opt-in" by specifying -std=c99 or -std=c11. It's unlikely to happen and probably not wise, but my personal preference for future standards would be to invert the "restrict" paradigm, and assume that even same-type writes never alias unless "may_alias" or some-such is specified.