Home
last modified time | relevance | path

Searched refs:pi (Results 1 – 19 of 19) sorted by relevance

/picolibc-3.7.0-3.6.0/newlib/libm/math/
Dsf_atan2.c22 pi = 3.1415927410e+00, /* 0x40490fdb */ variable
48 return pi + tiny; /* atan(+0,-anything) = pi */ in atan2f()
50 return -pi - tiny; /* atan(-0,-anything) =-pi */ in atan2f()
77 return pi + tiny; /* atan(+...,-INF) */ in atan2f()
79 return -pi - tiny; /* atan(-...,-INF) */ in atan2f()
105 return pi - (z - pi_lo); /* atan(+,-) */ in atan2f()
107 return (z - pi_lo) - pi; /* atan(-,-) */ in atan2f()
Ds_atan2.c50 pi = _F_64(3.1415926535897931160E+00), /* 0x400921FB, 0x54442D18 */ variable
78 return pi + tiny; /* atan(+0,-anything) = pi */ in atan264()
80 return -pi - tiny; /* atan(-0,-anything) =-pi */ in atan264()
107 return pi + tiny; /* atan(+...,-INF) */ in atan264()
109 return -pi - tiny; /* atan(-...,-INF) */ in atan264()
135 return pi - (z - pi_lo); /* atan(+,-) */ in atan264()
137 return (z - pi_lo) - pi; /* atan(-,-) */ in atan264()
Dsrf_lgamma.c24 pi = 3.1415927410e+00, /* 0x40490fdb */ variable
100 return __kernel_sinf(pi * x, zero, 0); in sin_pif()
127 y = __kernel_sinf(pi * y, zero, 0); in sin_pif()
131 y = __kernel_cosf(pi * ((float)0.5 - y), zero); in sin_pif()
135 y = __kernel_sinf(pi * (one - y), zero, 0); in sin_pif()
139 y = -__kernel_cosf(pi * (y - (float)1.5), zero); in sin_pif()
142 y = __kernel_sinf(pi * (y - (float)2.0), zero, 0); in sin_pif()
184 nadj = logf(pi / fabsf(t * x)); in __math_lgammaf_r()
Dsr_lgamma.c92 pi = 3.14159265358979311600e+00, /* 0x400921FB, 0x54442D18 */ variable
168 return __kernel_sin(pi * x, zero, 0); in sin_pi()
195 y = __kernel_sin(pi * y, zero, 0); in sin_pi()
199 y = __kernel_cos(pi * (_F_64(0.5) - y), zero); in sin_pi()
203 y = __kernel_sin(pi * (one - y), zero, 0); in sin_pi()
207 y = -__kernel_cos(pi * (y - _F_64(1.5)), zero); in sin_pi()
210 y = __kernel_sin(pi * (y - _F_64(2.0)), zero, 0); in sin_pi()
252 nadj = log64(pi / fabs64(t * x)); in __math_lgamma_r()
Dsf_acos.c19 pi = 3.1415925026e+00, /* 0x40490fda */ variable
44 return pi + (float)2.0 * pio2_lo; /* acos(-1)= pi */ in acosf()
63 return pi - (float)2.0 * (s + w); in acosf()
Ds_acos.c44 pi = _F_64(3.14159265358979311600e+00), /* 0x400921FB, 0x54442D18 */ variable
72 return pi + _F_64(2.0) * pio2_lo; /* acos(-1)= pi */ in acos64()
91 return pi - _F_64(2.0) * (s + w); in acos64()
/picolibc-3.7.0-3.6.0/newlib/libm/ld/common/
De_atan2l.c28 static const long double pi = _M_PI_L; variable
59 case 2: return pi+tiny;/* atan(+0,-anything) = pi */ in atan2l()
60 case 3: return -pi-tiny;/* atan(-0,-anything) =-pi */ in atan2l()
80 case 2: return pi+tiny ; /* atan(+...,-INF) */ in atan2l()
81 case 3: return -pi-tiny ; /* atan(-...,-INF) */ in atan2l()
100 case 2: return pi-(z-pi_lo);/* atan(+,-) */ in atan2l()
102 return (z-pi_lo)-pi;/* atan(-,-) */ in atan2l()
De_acosl.c35 #define pi ((long double)pi1 + (long double)pi2) macro
38 pi = 3.14159265358979323846264338327950280e+00L; variable
53 else return pi+2.0L*pio2_lo; /* acos(-1)= pi */ in acosl()
71 return pi - 2.0L*(s+w); in acosl()
/picolibc-3.7.0-3.6.0/newlib/libm/machine/spu/headers/
Datan2f4.h69 vector float pi = spu_splats((float)SM_PI); in _atan2f4() local
87 result = spu_sel(result, spu_sub(result, pi), quad1); in _atan2f4()
88 result = spu_sel(result, spu_add(result, pi), quad4); in _atan2f4()
Datan2d2.h70 vector double pi = spu_splats(SM_PI); in _atan2d2() local
89 result = spu_sel(result, spu_sub(result, pi), quad1); in _atan2d2()
90 result = spu_sel(result, spu_add(result, pi), quad4); in _atan2d2()
Dacosf4.h71 vec_float4 pi = spu_splats(3.1415925026e+00f); in _acosf4() local
136 vec_float4 result2 = spu_nmsub(two,spu_add(s,w1),pi); in _acosf4()
154 result = spu_sel(result,spu_sel(pi,zero,x_pos),abs_one); in _acosf4()
Dtgammaf4.h100 vector float pi = spu_splats((float)SM_PI); in _tgammaf4() local
217 nresult = _divf4(pi, spu_mul(x, spu_mul(result, _sinf4(spu_mul(x, pi))))); in _tgammaf4()
Dtgammad2.h153 vector double pi = spu_splats(SM_PI); in _tgammad2() local
276 nresult = _divd2(pi, spu_mul(x, spu_mul(result, _sind2(spu_mul(x, pi))))); in _tgammad2()
Dlgammad2.h147 vec_double2 pi = spu_splats(PI); in _lgammad2() local
271 nresult = spu_mul(x, _sind2(spu_mul(x, pi))); in _lgammad2()
273 nresult = _logd2(_divd2(pi, nresult)); in _lgammad2()
Dlgammaf4.h84 vec_float4 pi = spu_splats(3.14159265358979323846264338328f); in _lgammaf4() local
489 vec_float4 nresult = spu_mul(x, _sinf4(spu_mul(x, pi))); in _lgammaf4()
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld80/
De_lgammal_r.c94 pi = 3.14159265358979323846264L, variable
210 return sinl (pi * x); in sin_pi()
244 y = sinl (pi * y); in sin_pi()
248 y = cosl (pi * (half - y)); in sin_pi()
252 y = sinl (pi * (one - y)); in sin_pi()
256 y = -cosl (pi * (y - 1.5L)); in sin_pi()
259 y = sinl (pi * (y - 2.0L)); in sin_pi()
305 nadj = logl (pi / fabsl (t * x)); in lgammal_r()
/picolibc-3.7.0-3.6.0/newlib/libc/search/
Dqsort.c91 TYPE *pi = (TYPE *) (parmi); \
94 TYPE t = *pi; \
95 *pi++ = *pj; \
/picolibc-3.7.0-3.6.0/newlib/libm/test/
Dconvert.c192 int_scan_type *pi, in test_strtol_base() argument
199 test_iok(r, pi->value); in test_strtol_base()
200 test_eok(errno, pi->errno_val); in test_strtol_base()
201 test_iok(ptr - string, pi->end); in test_strtol_base()
/picolibc-3.7.0-3.6.0/newlib/
DChangeLog-201512709 * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
25480 from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.