Go Down

Topic: Fixed Point arithmetic support (Read 165 times) previous topic - next topic

bubnikv

Hello,

I see that GCC supports fixed point calculations

https://gcc.gnu.org/onlinedocs/gccint/Fixed-point-fractional-library-routines.html
https://github.com/gcc-mirror/gcc/blob/master/libgcc/config/avr/lib1funcs-fixed.S

I wonder what is the status of these routines and whether they could be integrated into the Arduino environment.

As of today, one may either use the C only fixed point implementation AvrFix
http://avrfix.sourceforge.net/
but the C only implementation is not quite efficient,

or one may use a set of pre-baked optimized assembly functions like
http://www.mikrocontroller.net/articles/AVR_Arithmetik
but they do not implement the fixed point arithmetic directly.

A direct GCC support of fixed point calculations would be perfect as I expect that these routines were finely hand optimized. Why are they not enabled in Arduino by default?

Thanks,
Vojtech


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy