Home
last modified time | relevance | path

Searched refs:ix (Results 1 – 25 of 112) sorted by relevance

12345

/picolibc-3.7.0-3.6.0/newlib/libm/math/
Dsf_sqrt.c23 __int32_t ix, s, q, m, t, i; in sqrtf() local
25 GET_FLOAT_WORD(ix, x); in sqrtf()
26 hx = ix & 0x7fffffff; in sqrtf()
30 if (ix < 0 && !isnanf(x)) in sqrtf()
38 if (ix < 0) in sqrtf()
42 m = (ix >> 23); in sqrtf()
44 for (i = 0; (ix & 0x00800000L) == 0; i++) in sqrtf()
45 ix <<= 1; in sqrtf()
49 ix = (ix & 0x007fffffL) | 0x00800000L; in sqrtf()
51 ix += ix; in sqrtf()
[all …]
Dsf_j1.c40 __int32_t hx, ix; in j1f() local
49 ix = hx & 0x7fffffff; in j1f()
52 if (ix >= 0x40000000) { /* |x| >= 2.0 */ in j1f()
57 if (ix <= FLT_UWORD_HALF_MAX) { /* make sure y+y not overflow */ in j1f()
68 if (ix > 0x5c000000) in j1f()
80 if (ix < 0x32000000) { /* |x|<2**-27 */ in j1f()
81 if (ix == 0) in j1f()
111 __int32_t hx, ix; in y1f() local
114 ix = 0x7fffffff & hx; in y1f()
116 if (ix == 0) in y1f()
[all …]
Dsf_j0.c39 __int32_t hx, ix; in j0f() local
48 ix = hx & 0x7fffffff; in j0f()
50 if (ix >= 0x40000000) { /* |x| >= 2.0 */ in j0f()
55 if (ix <= FLT_UWORD_HALF_MAX) { /* make sure x+x not overflow */ in j0f()
66 if (ix > 0x5c000000) in j0f()
75 if (ix < 0x39000000) { /* |x| < 2**-13 */ in j0f()
77 if (ix < 0x32000000) in j0f()
86 if (ix < 0x3F800000) { /* |x| < 1.00 */ in j0f()
110 __int32_t hx, ix; in y0f() local
113 ix = 0x7fffffff & hx; in y0f()
[all …]
Ds_cosh.c45 __int32_t ix; in cosh64() local
51 GET_HIGH_WORD(ix, x); in cosh64()
52 ix &= 0x7fffffff; in cosh64()
55 if (ix >= 0x7ff00000) in cosh64()
59 if (ix < 0x3fd62e43) { in cosh64()
62 if (ix < 0x3c800000) in cosh64()
68 if (ix < 0x40360000) { in cosh64()
74 if (ix < 0x40862E42) in cosh64()
79 if (ix < 0x408633CE || (ix == 0x408633ce && lx <= (__uint32_t)0x8fb9f87d)) { in cosh64()
Dsf_log.c36 __int32_t k, ix, i, j; in logf() local
38 GET_FLOAT_WORD(ix, x); in logf()
41 if (FLT_UWORD_IS_ZERO(ix & 0x7fffffff)) in logf()
43 if (ix < 0) in logf()
45 if (!FLT_UWORD_IS_FINITE(ix)) in logf()
47 if (FLT_UWORD_IS_SUBNORMAL(ix)) { in logf()
50 GET_FLOAT_WORD(ix, x); in logf()
52 k += (ix >> 23) - 127; in logf()
53 ix &= 0x007fffff; in logf()
54 i = (ix + (0x95f64 << 3)) & 0x800000; in logf()
[all …]
Dsf_cosh.c29 __int32_t ix; in coshf() local
31 GET_FLOAT_WORD(ix, x); in coshf()
32 ix &= 0x7fffffff; in coshf()
37 if (!FLT_UWORD_IS_FINITE(ix)) in coshf()
41 if (ix < 0x3eb17218) { in coshf()
44 if (ix < 0x24000000) in coshf()
50 if (ix < 0x41b00000) { in coshf()
56 if (ix <= FLT_UWORD_LOG_MAX) in coshf()
60 if (ix <= FLT_UWORD_LOG_2MAX) { in coshf()
Ds_sinh.c42 __int32_t ix, jx; in sinh64() local
47 ix = jx & 0x7fffffff; in sinh64()
50 if (ix >= 0x7ff00000) in sinh64()
57 if (ix < 0x40360000) { /* |x|<22 */ in sinh64()
58 if (ix < 0x3e300000) /* |x|<2**-28 */ in sinh64()
62 if (ix < 0x3ff00000) in sinh64()
68 if (ix < 0x40862E42) in sinh64()
73 if (ix < 0x408633CE || (ix == 0x408633ce && lx <= (__uint32_t)0x8fb9f87d)) { in sinh64()
Dsf_frexp.c23 __int32_t hx, ix; in frexpf() local
25 ix = 0x7fffffff & hx; in frexpf()
27 if (!FLT_UWORD_IS_FINITE(ix) || FLT_UWORD_IS_ZERO(ix)) in frexpf()
29 if (FLT_UWORD_IS_SUBNORMAL(ix)) { /* subnormal */ in frexpf()
32 ix = hx & 0x7fffffff; in frexpf()
35 *eptr += (ix >> 23) - 126; in frexpf()
Ds_j0.c86 __int32_t hx, ix; in j064() local
95 ix = hx & 0x7fffffff; in j064()
97 if (ix >= 0x40000000) { /* |x| >= 2.0 */ in j064()
102 if (ix < 0x7fe00000) { /* make sure x+x not overflow */ in j064()
113 if (ix > 0x48000000) in j064()
122 if (ix < 0x3f200000) { /* |x| < 2**-13 */ in j064()
124 if (ix < 0x3e400000) in j064()
133 if (ix < 0x3FF00000) { /* |x| < 1.00 */ in j064()
160 __int32_t hx, ix, lx; in y064() local
163 ix = 0x7fffffff & hx; in y064()
[all …]
Ds_frexp.c78 __int32_t hx, ix, lx; in frexp64() local
80 ix = 0x7fffffff & hx; in frexp64()
82 if (ix >= 0x7ff00000 || ((ix | lx) == 0)) in frexp64()
84 if (ix < 0x00100000) { /* subnormal */ in frexp64()
87 ix = hx & 0x7fffffff; in frexp64()
90 *eptr += (ix >> 20) - 1022; in frexp64()
Dsf_sinh.c24 __int32_t ix, jx; in sinhf() local
27 ix = jx & 0x7fffffff; in sinhf()
30 if (!FLT_UWORD_IS_FINITE(ix)) in sinhf()
37 if (ix < 0x41b00000) { /* |x|<22 */ in sinhf()
38 if (ix < 0x31800000) /* |x|<2**-28 */ in sinhf()
42 if (ix < 0x3f800000) in sinhf()
48 if (ix <= FLT_UWORD_LOG_MAX) in sinhf()
52 if (ix <= FLT_UWORD_LOG_2MAX) { in sinhf()
Ds_j1.c88 __int32_t hx, ix, lx; in j164() local
97 ix = hx & 0x7fffffff; in j164()
99 if (ix >= 0x40000000) { /* |x| >= 2.0 */ in j164()
104 if (ix < 0x7fe00000) { /* make sure y+y not overflow */ in j164()
115 if (ix > 0x48000000) in j164()
127 if (ix < 0x3e400000) { /* |x|<2**-27 */ in j164()
129 if (ix == 0 && lx == 0) in j164()
161 __int32_t hx, ix, lx; in y164() local
164 ix = 0x7fffffff & hx; in y164()
166 if ((ix | lx) == 0) in y164()
[all …]
Dsf_atanh.c27 __int32_t hx, ix; in atanhf() local
29 ix = hx & 0x7fffffff; in atanhf()
30 if (ix > 0x3f800000) /* |x|>1 */ in atanhf()
32 if (ix == 0x3f800000) in atanhf()
34 if (ix < 0x31800000 && (huge + x) > zero) in atanhf()
36 SET_FLOAT_WORD(x, ix); in atanhf()
37 if (ix < 0x3f000000) { /* x < 0.5 */ in atanhf()
Dsf_atan.c53 __int32_t ix, hx, id; in atanf() local
56 ix = hx & 0x7fffffff; in atanf()
57 if (ix >= 0x50800000) { /* if |x| >= 2^34 */ in atanf()
58 if (FLT_UWORD_IS_NAN(ix)) in atanf()
65 if (ix < 0x3ee00000) { /* |x| < 0.4375 */ in atanf()
66 if (ix < 0x31000000) { /* |x| < 2^-29 */ in atanf()
73 if (ix < 0x3f980000) { /* |x| < 1.1875 */ in atanf()
74 if (ix < 0x3f300000) { /* 7/16 <=|x|<11/16 */ in atanf()
82 if (ix < 0x401c0000) { /* |x| < 2.4375 */ in atanf()
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld80/
De_sinhl.c39 u_int32_t jx,ix,i0,i1; in sinhl() local
43 ix = jx&0x7fff; in sinhl()
46 if(ix==0x7fff) return x+x; in sinhl()
51 if (ix < 0x4003 || (ix == 0x4003 && i0 <= 0xc8000000)) { /* |x|<25 */ in sinhl()
52 if (ix<0x3fdf) /* |x|<2**-32 */ in sinhl()
55 if(ix<0x3fff) return h*(2.0l*t-t*t/(t+one)); in sinhl()
60 if (ix < 0x400c || (ix == 0x400c && i0 < 0xb17217f7)) in sinhl()
64 if (ix<0x400c || (ix == 0x400c && (i0 < 0xb174ddc0 in sinhl()
Ds_tanhl.c46 u_int32_t jj0,jj1,ix; in tanhl() local
50 ix = se&0x7fff; in tanhl()
53 if(ix==0x7fff) { in tanhl()
60 if (ix < 0x4003 || (ix == 0x4003 && jj0 < 0xb8000000u)) {/* |x|<23 */ in tanhl()
61 if ((ix|jj0|jj1) == 0) in tanhl()
63 if (ix<0x3fc8) /* |x|<2**-55 */ in tanhl()
65 if (ix>=0x3fff) { /* |x|>=1 */ in tanhl()
De_lgammal_r.c203 int n, ix; in sin_pi() local
207 ix = se & 0x7fff; in sin_pi()
208 ix = (ix << 16) | (i0 >> 16); in sin_pi()
209 if (ix < 0x3ffd8000) /* 0.25 */ in sin_pi()
226 if (ix >= 0x403f8000) /* 2^64 */ in sin_pi()
232 if (ix < 0x403e8000) /* 2^63 */ in sin_pi()
270 int i, ix; in lgammal_r() local
275 ix = se & 0x7fff; in lgammal_r()
277 if ((ix | i0 | i1) == 0) in lgammal_r()
284 ix = (ix << 16) | (i0 >> 16); in lgammal_r()
[all …]
De_atanhl.c41 int32_t ix; in atanhl() local
44 ix = se&0x7fff; in atanhl()
45 if ((ix+((((i0&0x7fffffff)|i1)|(-((i0&0x7fffffff)|i1)))>>31))>0x3fff) in atanhl()
48 if(ix==0x3fff) in atanhl()
50 if(ix<0x3fe3&&(huge+x)>zero) return x; /* x<2**-28 */ in atanhl()
51 SET_LDOUBLE_EXP(x,ix); in atanhl()
52 if(ix<0x3ffe) { /* x < 0.5 */ in atanhl()
/picolibc-3.7.0-3.6.0/newlib/libm/common/
Dsf_scalbln.c25 __int32_t ix; in scalblnf() local
29 GET_FLOAT_WORD(ix,x); in scalblnf()
30 hx = ix&0x7fffffff; in scalblnf()
35 GET_FLOAT_WORD(ix,x); in scalblnf()
36 k = ((ix&0x7f800000)>>23) - 25; in scalblnf()
38 return __math_uflowf(ix<0); /*underflow*/ in scalblnf()
43 return __math_oflowf(ix < 0); /* overflow */ in scalblnf()
45 {SET_FLOAT_WORD(x,(ix&0x807fffff)|(k<<23)); return x;} in scalblnf()
47 return __math_uflowf(ix < 0); /*underflow*/ in scalblnf()
49 SET_FLOAT_WORD(x,(ix&0x807fffff)|(k<<23)); in scalblnf()
Dsf_log.c55 uint32_t ix, iz, tmp; in logf() local
58 ix = asuint (x); in logf()
61 if (__builtin_expect (ix == 0x3f800000, 0)) in logf()
64 if (__builtin_expect (ix - 0x00800000 >= 0x7f800000 - 0x00800000, 0)) in logf()
67 if (ix * 2 == 0) in logf()
69 if (ix == 0x7f800000) /* log(inf) == inf. */ in logf()
71 if ((ix & 0x80000000) || ix * 2 >= 0xff000000) in logf()
74 ix = asuint (x * 0x1p23f); in logf()
75 ix -= (int32_t) 23 << 23; in logf()
81 tmp = ix - OFF; in logf()
[all …]
Dsf_log2.c54 uint32_t ix, iz, top, tmp; in log2f() local
57 ix = asuint (x); in log2f()
60 if (__builtin_expect (ix == 0x3f800000, 0)) in log2f()
63 if (__builtin_expect (ix - 0x00800000 >= 0x7f800000 - 0x00800000, 0)) in log2f()
66 if (ix * 2 == 0) in log2f()
68 if (ix == 0x7f800000) /* log2(inf) == inf. */ in log2f()
70 if ((ix & 0x80000000) || ix * 2 >= 0xff000000) in log2f()
73 ix = asuint (x * 0x1p23f); in log2f()
74 ix -= (uint32_t) 23 << 23; in log2f()
80 tmp = ix - OFF; in log2f()
[all …]
Dsf_scalbn.c32 __int32_t k,ix; in scalbnf() local
35 GET_FLOAT_WORD(ix,x); in scalbnf()
36 hx = ix&0x7fffffff; in scalbnf()
41 GET_FLOAT_WORD(ix,x); in scalbnf()
42 k = ((ix&0x7f800000)>>23) - 25; in scalbnf()
45 return __math_uflowf(ix<0); /*underflow*/ in scalbnf()
50 return __math_oflowf(ix<0); /*overflow*/ in scalbnf()
53 return __math_oflowf(ix<0); /* overflow */ in scalbnf()
55 {SET_FLOAT_WORD(x,(ix&0x807fffff)|(k<<23)); return x;} in scalbnf()
57 return __math_uflowf(ix<0); /*underflow*/ in scalbnf()
[all …]
Dsf_pow.c54 log2_inline (uint32_t ix) in log2_inline() argument
64 tmp = ix - OFF; in log2_inline()
67 iz = ix - top; in log2_inline()
150 zeroinfnan (uint32_t ix) in zeroinfnan() argument
152 return 2 * ix - 1 >= 2u * (uint32_t) 0x7f800000 - 1; in zeroinfnan()
159 uint32_t ix, iy; in powf() local
161 ix = asuint (x); in powf()
163 if (__builtin_expect (ix - 0x00800000 >= 0x7f800000 - 0x00800000 in powf()
172 if (ix == 0x3f800000) in powf()
174 if (2 * ix > 2u * (uint32_t) 0x7f800000 || 2 * iy > 2u * (uint32_t) 0x7f800000) in powf()
[all …]
Dsf_getpayload.c40 __int32_t ix; in getpayloadf() local
41 GET_FLOAT_WORD(ix, *x); in getpayloadf()
43 if ((ix & 0x7f800000) != 0x7f800000 || in getpayloadf()
44 ((ix & 0x7fffff) == 0)) in getpayloadf()
46 ix &= 0x3fffff; in getpayloadf()
47 return (float) ix; in getpayloadf()
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld128/
De_sinhl.c57 u_int32_t ix; in sinhl() local
63 ix = jx & 0x7fffffff; in sinhl()
66 if (ix >= 0x7fff0000) in sinhl()
74 u.parts32.mswhi = ix; in sinhl()
77 if (ix <= 0x40044000) in sinhl()
79 if (ix < 0x3fc60000) /* |x| < 2^-57 */ in sinhl()
83 if (ix < 0x3fff0000) in sinhl()
89 if (ix <= 0x400c62e3) /* 11356.375 */ in sinhl()

12345