blob: 696bf9faee701e2a21418641f24ac0cabd25c1e6 [file] [log] [blame]
#include "headers/log2d2.h"
#include "headers/dom_chkd_less_than.h"
static __inline double _log2(double x)
{
double res;
vector double vx;
vector double vc = { 0.0, 0.0 };
vx = spu_promote(x, 0);
res = spu_extract(_log2d2(vx), 0);
#ifndef _IEEE_LIBM
dom_chkd_less_than(vx, vc);
#endif
return res;
}