Why denormalized floats are so much slower than other floats, from hardware architecture viewpoint?

前端 未结 2 1072
北海茫月
北海茫月 2021-01-01 19:45

Denormals are known to underperform severely, 100x or so, compared to normals. This frequently causes unexpected software problems.

I\'m curious, from CPU Architect

2条回答
  •  时光取名叫无心
    2021-01-01 20:29

    Denormals are not handled by the FPU (H/W) in many architectures - so that leaves the implementation to s/w

    There's a good basic intro here https://en.wikipedia.org/wiki/Denormal_number

    Under Performance issues -

提交回复
热议问题