Retro68/gcc/newlib/libm/machine/spu/headers/sincos.h
Wolfgang Thaller d464252791 re-add newlib
2017-04-11 23:13:36 +02:00

11 lines
255 B
C

#include "headers/sincosd2.h"
static __inline void _sincos(double angle, double* sinx, double* cosx)
{
vector double vsinx, vcosx;
_sincosd2(spu_promote(angle, 0), &vsinx, &vcosx);
*sinx = spu_extract(vsinx, 0);
*cosx = spu_extract(vcosx, 0);
}