zlacker

[parent] [thread] 1 comments
1. rwmj+(OP)[view] [source] 2024-01-16 14:31:53
It isn't just that. -ffast-math also allows the compiler to ignore infinites. In fact for GCC with -ffast-math, isinf always returns false. Something similar happens for NaNs/isnan.
replies(1): >>cogman+Se
2. cogman+Se[view] [source] 2024-01-16 15:42:14
>>rwmj+(OP)
I lump this into "floating points are tricky". NaNs and inf are definitely legitimate floating point values. They are also things that a lot of applications will break on they ever encounter them.
[go to top]