logoalt Hacker News

adgjlsfhk1yesterday at 9:07 PM1 replyview on HN

> languages that care about performance to default to fp32

What do you mean by this? In C 1.0 is a double.


Replies

kimixayesterday at 11:16 PM

But the "float" typename is generally fp32 - if we assume the "most generically named type" is the "default". Though this is a bit of an inconsistency with C - the type name "double" surely implies it's double the expected baseline while, as you mentioned, constants and much of libm default to 'double'.