News for hackers. Stuff that matters.
Re:C – Preliminary C2x Charter by _kst_ on Thursday March 17, 2016 @06:44PM (#11308240)
Fixed-point and floating-point types have very different behavior. I can't think of a case where I'd want to let the compiler decide which one to use.
Re:C – Preliminary C2x Charter by tropo on Thursday March 17, 2016 @09:06PM (#11309083)
No, normally what people desire of a fixed-point representation is a subset of a floating-point representation. Most fixed-point stuff is prototyped as floating-point, then painfully converted into a mess of nasty macros. Ideally there would be assertions to protect against failure due to the limited functionality of the fixed-point type, but probably you don't bother.

It's not maintainable.

We should be able to take that prototype, mark it up with hints for the compiler, and then build with fixed-point enabled.