Subnormal floating-point numbers are expensive on Intel processors
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
Subnormal floating-point numbers are expensive on Intel processors
Unofficial Hacker News client; not affiliated with Y Combinator.
khuey · · focus · HN ↗
adrian_b · · focus · HN ↗
The options mentioned above are guaranteed to generate big errors, so they are acceptable only when errors really do not matter, e.g. in graphics for games.
The only correct option for avoiding subnormals is to enable the underflow exception and handle it in a manner that is considered more suitable for that application than the use of subnormals.