Retro68/gcc/newlib/libm/machine/spu/headers/acosf.h
Wolfgang Thaller ec13cc9ce7 fix newlib
2018-12-29 09:59:36 +01:00

19 lines
332 B
C

#include "headers/acosf4.h"
#include "headers/dom_chkf_negone_one.h"
static __inline float _acosf(float x)
{
float res;
vector float vx;
vx = spu_splats(x);
res = spu_extract(_acosf4(vx), 0);
#ifndef _IEEE_LIBM
/*
* Domain error if not in the interval [-1, +1]
*/
dom_chkf_negone_one(vx);
#endif
return res;
}