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

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

static __inline float _asinf(float x)
{
  float res;
  vector float vx;

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