Added missing math.h functionality for SDL_audiocvt.c
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403226
This commit is contained in:
parent
a3c6362a20
commit
105093d7b7
1 changed files with 5 additions and 0 deletions
|
@ -28,6 +28,8 @@
|
||||||
|
|
||||||
/* Math routines from uClibc: http://www.uclibc.org */
|
/* Math routines from uClibc: http://www.uclibc.org */
|
||||||
|
|
||||||
|
#define M_PI 3.14159265358979323846264338327950288 /* pi */
|
||||||
|
|
||||||
extern double __ieee754_log(double x);
|
extern double __ieee754_log(double x);
|
||||||
extern double __ieee754_pow(double x, double y);
|
extern double __ieee754_pow(double x, double y);
|
||||||
extern double __ieee754_sqrt(double x);
|
extern double __ieee754_sqrt(double x);
|
||||||
|
@ -43,6 +45,9 @@ extern double floor(double x);
|
||||||
extern double scalbn(double x, int n);
|
extern double scalbn(double x, int n);
|
||||||
extern double sin(double x);
|
extern double sin(double x);
|
||||||
|
|
||||||
|
#define sinf(x) (float)sin((double)x)
|
||||||
|
#define cosf(x) (float)cos((double)x)
|
||||||
|
|
||||||
#endif /* HAVE_MATH_H */
|
#endif /* HAVE_MATH_H */
|
||||||
|
|
||||||
/* vi: set ts=4 sw=4 expandtab: */
|
/* vi: set ts=4 sw=4 expandtab: */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue