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

17 lines
324 B
C

#include "headers/acoshf4.h"
#include "headers/dom_chkf_less_than.h"
static __inline float _acoshf(float x)
{
float res;
vector float vx;
vector float vc = { 1.0, 1.0, 1.0, 1.0 };
vx = spu_promote(x, 0);
res = spu_extract(_acoshf4(vx), 0);
#ifndef _IEEE_LIBM
dom_chkf_less_than(vx, vc);
#endif
return res;
}