source: trunk/libs/newlib/src/newlib/libm/machine/spu/headers/atanh.h @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 338 bytes
Line 
1#include "headers/atanhd2.h"
2#include "headers/dom_chkd_negone_one.h"
3
4static __inline double _atanh(double x)
5{
6  double res;
7  vector double vx;
8
9  vx = spu_splats(x);
10  res = spu_extract(_atanhd2(vx), 0);
11#ifndef _IEEE_LIBM
12  /*
13   * Domain error if not in the interval [-1, +1]
14   */
15  dom_chkd_negone_one(vx);
16#endif
17  return res;
18}
Note: See TracBrowser for help on using the repository browser.