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 ↗
bee_rider · · focus · HN ↗
account42 · · focus · HN ↗
gpderetta · · focus · HN ↗
jcranmer · · focus · HN ↗
[deleted] · · focus · HN ↗
[deleted]
gpderetta · · focus · HN ↗
adrian_b · · focus · HN ↗
Such options exist only for games or for experts in numeric analysis, not for general-purpose programming.
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.