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

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

static __inline double _acos(double x)
{
  double res;
  vector double vx;

  vx = spu_splats(x);
  res = spu_extract(_acosd2(vx), 0);
#ifndef _IEEE_LIBM
  /*
   * Domain error if not in the interval [-1, +1]
   */
  dom_chkd_negone_one(vx);
#endif
  return res;
}