Could someone add float variations of common functions to avr libc - this would match gcc expectations for available libc functions.

As float == double there is little effort required.

Also I note that this and similar functions would avoids this hack on TI benchmark, so it has practical use in code compatibility.

#include <math.h>

#ifdef  __AVR__
# define atanf(x) atan(x)
# define cosf(x)  cos(x)
# define expf(x)  exp(x)
# define logf(x)  log(x)
# define sinf(x)  sin(x)
# define sqrtf(x) sqrt(x)
#endif


Andy








_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to