‹ BackHN Continuity

Thread

Subnormal floating-point numbers are expensive on Intel processors

69 points · 54 comments · zdw

  1. rf15 · · focus · HN ↗
    ...Is this running extra micro code to fix some hardware bug/unreliability? How can this happen? Doesn't look like a normal design decision.
    1. duped · · focus · HN ↗
      It's to satisfy IEEE 754 and it's been this way for decades.
      1. david-gpu · · focus · HN ↗
        I don't know who is down voting you. AFAIK IEEE 754:2008 does require support for subnormals. You can optionally have modes that flush them to zero, but you must support subnormals.

        I haven't done any work on this stuff since 2019, so my memory may be hazy.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.