[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## [avr-libc-dev] Float equivalents to double functions

**From**: |
Andrew Hutchinson |

**Subject**: |
[avr-libc-dev] Float equivalents to double functions |

**Date**: |
Sat, 21 Nov 2009 21:32:48 -0500 |

**User-agent**: |
Thunderbird 2.0.0.23 (Windows/20090812) |

`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] Float equivalents to double functions**,
*Andrew Hutchinson* **<=**