3 ms·
Fixed point is very common, at least in some areas.
by bobowzki 6y ago
Fixed point is very common, at least in some areas.
- MaxBarraclough 6y agoGCC has some support for fixed-point arithmetic, as an extension to the C language. Unfortunately only a very few target architectures are supported, not including AMD64. [0] (Unfortunately this page doesn't list which architectures are supported.) As carlmr mentioned, the Ada language has built-in support for fixed-point arithmetic types. [0] https://gcc.gnu.org/onlinedocs/gcc/Fixed-Point.html https://gcc.gnu.org/onlinedocs/gcc/Fixed-Point.html
- flohofwoe 6y agoYou don't need special compiler support for fixed-point-math, just left- and right-shift to "move the point around".