Welcome to mirror list, hosted at ThFree Co, Russian Federation.

log.h « headers « spu « machine « libm « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9bb5e3bff3850988e5d6ce3f15755ff42b547248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "headers/logd2.h"
#include "headers/dom_chkd_less_than.h"

static __inline double _log(double x)
{
  double res;
  vector double vx;
  vector double vc = { 0.0, 0.0 };

  vx = spu_promote(x, 0);
  res = spu_extract(_logd2(vx), 0);
#ifndef _IEEE_LIBM
  dom_chkd_less_than(vx, vc);
#endif
  return res;
}