logoalt Hacker News

Subnormal floating-point numbers are expensive on Intel processors

40 pointsby zdwlast Tuesday at 4:58 PM21 commentsview on HN

Comments

mzstoday at 1:48 PM

Are the results compared across architectures?

show 1 reply
khueytoday at 12:59 PM

If you don't _need_ subnormals MXCSR.DAZ/FTZ (which you can get gcc to set via -mdaz-ftz) will let you ignore all of this.

show 1 reply
pixelpoettoday at 1:25 PM

This has been the case since a zillion years, since the Core 2 Duo days at minimum.

show 1 reply
juancntoday at 12:42 PM

Apparently it only happens on P-cores, recent E-cores have a fast path for subnormals.

show 1 reply
gwbas1ctoday at 1:24 PM

I'm still trying to understand what a subnormal number is; IE, I'm looking for the TLDR so I know just enough to know if I'm using them and need to learn more.

Unfortunately, the Wikipedia article, while probably being accurate, doesn't give a clear and concise answer.

IE, is 0.0001 a subnormal? Or is it 0.000000000000000000001?

show 2 replies
rf15today at 11:59 AM

...Is this running extra micro code to fix some hardware bug/unreliability? How can this happen? Doesn't look like a normal design decision.

show 3 replies