mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-11 19:49:32 +00:00
19 lines
335 B
C
19 lines
335 B
C
#include "headers/asind2.h"
|
|
#include "headers/dom_chkd_negone_one.h"
|
|
|
|
static __inline double _asin(double x)
|
|
{
|
|
double res;
|
|
vector double vx;
|
|
|
|
vx = spu_splats(x);
|
|
res = spu_extract(_asind2(vx), 0);
|
|
#ifndef _IEEE_LIBM
|
|
/*
|
|
* Domain error if not in the interval [-1, +1]
|
|
*/
|
|
dom_chkd_negone_one(vx);
|
|
#endif
|
|
return res;
|
|
}
|