implement sincosf and sincosl functions; add prototypes

presumably broken gcc may generate calls to these, and it's said that
ffmpeg makes use of sincosf.
This commit is contained in:
Rich Felker 2012-03-15 02:38:42 -04:00
commit 5657cc58e5
3 changed files with 19 additions and 0 deletions

8
src/linux/sincosf.c Normal file
View file

@ -0,0 +1,8 @@
#define _GNU_SOURCE
#include <math.h>
void sincosf(float t, float *y, float *x)
{
*y = sinf(t);
*x = cosf(t);
}

8
src/linux/sincosl.c Normal file
View file

@ -0,0 +1,8 @@
#define _GNU_SOURCE
#include <math.h>
void sincosl(long double t, long double *y, long double *x)
{
*y = sinl(t);
*x = cosl(t);
}