Re:Why does changing 0.1f to 0 slow down performance by 10x?
by jedbrown on Sunday March 11, 2012 @01:27PM
(#3690721)
The conversion is optimized out by gcc-4.6 at all positive optimization levels, the addition is optimized at -O2 and above. But the slowness is caused by the algorithms being different, with one producing denormals while the other stays reasonable.
[ Parent
| on HN ]
There are no comments on this comment yet.