3 ms·
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.
by _kst_ 11y ago
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.
- tropo 11y agoNo, 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.