Home
last modified time | relevance | path

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

12345678

/illumos-gate/usr/src/lib/libm/common/R/
H A Dfmodf.c84 ix += ix; in fmodf()
87 ix = iu | (ix & im); in fmodf()
91 ix = iu | (ix & im); in fmodf()
119 ix += ix; in fmodf()
124 ix += ix; in fmodf()
129 ix += ix; in fmodf()
134 ix += ix; in fmodf()
145 ix += ix; in fmodf()
151 ix = iz; in fmodf()
159 ix += ix; in fmodf()
[all …]
H A Dexpf.c347 int hx, ix, n; in expf() local
350 ix = hx & ~0x80000000; in expf()
372 ix -= n << 23; in expf()
374 ix += 0x800000; in expf()
376 ix = 0x800000 - ix; in expf()
378 ix <<= n - 0x7f; in expf()
379 w = ET[(ix & 0x3f) + 64] * ET[((ix >> 6) & 0x3f) + 128]; in expf()
381 ET[((ix >> 18) & 0x3f) + 256]; in expf()
382 q = ET[((ix >> 24) & 0x3f) + 320]; in expf()
384 ix <<= n - 0x79; in expf()
[all …]
H A Dnextafterf.c40 int ix, iy, iz; in nextafterf() local
42 ix = px[0]; in nextafterf()
48 if (ix == iy || (ix | iy) == 0x80000000) in nextafterf()
52 else if (ix > 0) { in nextafterf()
53 if (ix > iy) in nextafterf()
54 iz = ix - 1; in nextafterf()
56 iz = ix + 1; in nextafterf()
59 iz = ix + 1; in nextafterf()
61 iz = ix - 1; in nextafterf()
64 ix = iz & 0x7f800000; in nextafterf()
[all …]
H A Datanf.c108 int ix, iy, sign, j; in atanf() local
111 ix = *(int *) &x; in atanf()
112 sign = ix & 0x80000000; in atanf()
113 ix ^= sign; in atanf()
116 if (ix < 0x3e000000) { in atanf()
135 if (ix >= 0x41000000) { in atanf()
136 *(int *) &x = ix; in atanf()
152 if (ix > 0x7f800000) { in atanf()
173 *(int *) &x = ix; in atanf()
174 iy = (ix + 0x00040000) & 0x7ff80000; in atanf()
[all …]
H A Dbesself.c272 int ix, i; in __k_j0f() local
331 int ix; in j0f() local
359 int ix, i; in __k_y0f() local
361 ix = *(int *)&fx; in __k_y0f()
406 int ix; in y0f() local
411 ix = *(int *)&fx; in y0f()
438 int i, ix, sgn; in __k_j1f() local
502 int ix; in j1f() local
527 int i, ix; in __k_y1f() local
580 int ix; in y1f() local
[all …]
H A Dlogf.c118 int hx, ix, i, exp, iy; in logf() local
121 ix = hx & ~0x80000000; in logf()
123 if (ix >= 0x7f800000) /* nan or inf */ in logf()
130 return ((ix == 0)? -1.0f / f : f / f); in logf()
134 f = (float)ix; in logf()
135 ix = *(int *)&f; in logf()
139 exp += (ix - 0x3f320000) >> 23; in logf()
140 ix &= 0x007fffff; in logf()
141 iy = (ix + 0x20000) & 0xfffc0000; in logf()
144 v = (double)(ix - iy) * TBL[i + 1]; in logf()
H A Dhypotf.c38 int ix, iy; in hypotf() local
40 ix = (*(int *) &x) & 0x7fffffff; in hypotf()
42 if (ix >= 0x7f800000) { in hypotf()
43 if (ix == 0x7f800000) in hypotf()
44 *(int *) &w = x == y ? iy : ix; /* w = |x| = inf */ in hypotf()
46 *(int *) &w = x == y ? ix : iy; /* w = |y| = inf */ in hypotf()
51 *(int *) &w = x == y ? ix : iy; /* w = |y| = inf */ in hypotf()
54 } else if (ix == 0) in hypotf()
57 *(int *) &w = ix; /* w = |x| */ in hypotf()
H A Dlog1pf.c37 int ix; in log1pf() local
39 ix = *(int *)&x; in log1pf()
40 if (ix >= 0x7f800000) { in log1pf()
44 if (ix < 0) { in log1pf()
45 ix &= ~0x80000000; in log1pf()
46 if (ix == 0x3f800000) /* x is -1 */ in log1pf()
48 if (ix > 0x3f800000) /* x is < -1 or nan */ in log1pf()
/illumos-gate/usr/src/lib/libm/common/m9x/
H A Dremquof.c101 ix += ix; in fmodquof()
104 ix = iu | (ix & im); in fmodquof()
107 ix = iu | (ix & im); in fmodquof()
135 ix += ix; in fmodquof()
142 ix += ix; in fmodquof()
149 ix += ix; in fmodquof()
156 ix += ix; in fmodquof()
176 ix += ix; in fmodquof()
184 ix = iz; in fmodquof()
195 ix += ix; in fmodquof()
[all …]
H A Dtgammaf.c311 int k, ix, j, m; in large_gam() local
313 ix = __HI(x); in large_gam()
316 ix = (ix & 0x000fffff) | 0x3ff00000; /* y = scale x to [1,2] */ in large_gam()
317 __HI(y) = ix; in large_gam()
321 j = (ix >> 14) & 0x3f; in large_gam()
459 ix = hx & 0x7fffffff; in tgammaf()
462 if (ix < 0x33800000) in tgammaf()
465 if (ix >= 0x7f800000) in tgammaf()
491 if (ix > 0x4b000000) in tgammaf()
494 xk = -2 + (ix & 1); in tgammaf()
[all …]
/illumos-gate/usr/src/lib/libm/common/C/
H A Dfmod.c59 if (ix <= iy) in fmod()
70 k = ix >> 52; in fmod()
83 ix += ix; in fmod()
91 ix = 0x0010000000000000ll | (ix & 0x000fffffffffffffll); in fmod()
99 ix = iz; in fmod()
100 ix += ix; in fmod()
102 iz = ix - iy; in fmod()
104 ix = iz; in fmod()
110 ix += ix; in fmod()
115 ix >>= 1; in fmod()
[all …]
H A Dlog2.c153 int i, hx, ix, n, lx; in log2() local
168 if (ix >= 0x7ff00000) in log2()
175 if (ix >= 0x7ff00000) /* log(NaN) = NaN */ in log2()
184 i = ix >> 19; in log2()
187 if (ix >= 0x3fec0000 && ix < 0x3ff20000) { in log2()
191 if (((ix << 12) | lx) == 0) in log2()
200 i = (ix - 0x3fb80000) >> 15; in log2()
203 return ((double) ((ix >> 20) - 0x3ff)); in log2()
212 dn = (double) (n + ((ix >> 20) - 0x3ff)); in log2()
213 ix <<= 12; in log2()
[all …]
H A Dhypot.c91 if (iy > ix) { in hypot()
94 i = ix; in hypot()
95 ix = iy; in hypot()
104 nx = ix >> 20; in hypot()
112 if (((ix - 0x7ff00000) | lx) == 0) in hypot()
129 ix -= 768 << 20; in hypot()
136 if ((ix | lx) == 0) in hypot()
148 ix = ((int *) &ax)[HIWORD]; in hypot()
150 ix += 768 << 20; in hypot()
157 j = (ix >> 20) - (iy >> 20); in hypot()
[all …]
H A Dscalbn.c77 int *px, ix, hx, k; in scalbn() local
80 ix = px[HIWORD]; in scalbn()
81 hx = ix & ~0x80000000; in scalbn()
92 ix = px[HIWORD]; in scalbn()
93 k = ((ix & ~0x80000000) >> 20) - 52; in scalbn()
96 ix = px[HIWORD]; in scalbn()
110 return (huge * ((ix < 0)? -huge : huge)); in scalbn()
113 return (tiny * ((ix < 0)? -tiny : tiny)); in scalbn()
115 px[HIWORD] = (ix & ~0x7ff00000) | (k << 20); in scalbn()
118 px[HIWORD] = (ix & ~0x7ff00000) | (k << 20); in scalbn()
H A Dcos.c113 int i, j, n, hx, ix, lx; in cos() local
117 ix = hx & ~0x80000000; in cos()
120 if (ix < 0x3e400000) { /* |x| < 2**-27 */ in cos()
125 if (ix < 0x3f800000) /* |x| < 0.008 */ in cos()
133 n = ix >> 20; in cos()
142 i = ix - 0x3ff921fb; in cos()
150 if (((ix - 0x3ff92000) >> 12) == 0) { in cos()
163 i = ix - 0x4012D97C; in cos()
171 if (((ix - 0x4012D800) >> 9) == 0) { in cos()
183 i = ix - 0x401F6A7A; in cos()
[all …]
/illumos-gate/usr/src/lib/libm/common/Q/
H A Dlogl.c111 int i, j, ix, i0, i1, n; in logl() local
123 ix = px[i0]; in logl()
137 if (ix >= 0x7fff0000) in logl()
141 if (ix >= 0x00010000) in logl()
143 i = ix & 0x7fffffff; in logl()
148 if (ix < 0) { in logl()
149 if ((unsigned) ix >= 0xffff0000) in logl()
156 ix = px[i0]; in logl()
159 ix = (ix & 0x0000ffff) | 0x3fff0000; /* scale x to [1,2] */ in logl()
160 px[i0] = ix; in logl()
[all …]
H A Datanl.c115 int ix, iy, sign, j; in atanl() local
117 ix = px[i0]; in atanl()
118 sign = ix & 0x80000000; in atanl()
119 ix ^= sign; in atanl()
122 if (ix < 0x3ffc0000) { in atanl()
147 if (ix >= 0x40020000) { in atanl()
148 px[i0] = ix; in atanl()
149 if (ix < 0x40050400) { /* x < 65 */ in atanl()
186 px[i0] = ix; in atanl()
187 iy = (ix + 0x00000800) & 0x7ffff000; in atanl()
[all …]
/illumos-gate/usr/src/lib/libm/common/complex/
H A Dclog.c74 int n, ix, iy, hx, hy; in __clog() local
83 ix = hx & 0x7fffffff; in __clog()
88 if (ix < iy || (ix == iy && lx < ly)) { in __clog()
93 n = ix, ix = iy; in __clog()
98 n = (ix - iy) >> 20; in __clog()
99 if (ix >= 0x7ff00000) { /* x or y is Inf or NaN */ in __clog()
100 if (ISINF(ix, lx)) in __clog()
108 } else if (((0x3fffffff - ix) ^ (ix - 0x3fe00000)) >= 0) { in __clog()
110 if (ix >= 0x3ff00000) { in __clog()
111 if (((ix - 0x3ff00000) | lx) == 0) in __clog()
[all …]
H A Dclogl.c52 int n, ix, iy, hx, hy; in clogl() local
58 ix = hx & 0x7fffffff; in clogl()
63 if (ix < iy || (ix == iy && ix < 0x7fff0000 && ax < ay)) { in clogl()
68 n = ix, ix = iy; in clogl()
71 n = (ix - iy) >> 16; in clogl()
72 if (ix >= 0x7fff0000) { /* x or y is Inf or NaN */ in clogl()
81 else if (((0x3fffffff - ix) ^ (ix - 0x3ffe0000)) >= 0) { in clogl()
83 if (ix >= 0x3fff0000) { in clogl()
97 else if (ix < 0x5f3f0000 && iy >= 0x20bf0000) in clogl()
H A Dcabs.c66 if (iy > ix) { in cabs()
69 i = ix; in cabs()
70 ix = iy; in cabs()
79 nx = ix >> 20; in cabs()
87 if (((ix - 0x7ff00000) | lx) == 0) in cabs()
103 ix -= 768 << 20; in cabs()
107 if ((ix | lx) == 0) in cabs()
119 ix = ((int *)&ax)[HIWORD]; in cabs()
121 ix += 768 << 20; in cabs()
130 j = (ix >> 20) - (iy >> 20); in cabs()
[all …]
H A Dcatan.c95 int hx, hy, ix, iy; in catan() local
106 ix = hx & 0x7fffffff; in catan()
110 if (ix >= 0x7ff00000) { in catan()
111 if (ISINF(ix, lx)) { in catan()
130 } else if ((ix | lx) == 0) { in catan()
172 if (ix < 0x3ff00000) in catan()
180 if (ix < 0x3e200000) in catan()
182 else if (ix > 0x41c00000) in catan()
218 if (ix < 0x3e200000) in catan()
241 } else if (ix < 0x38b00000) { in catan()
[all …]
H A Dk_clog_r.c251 int n, k, ix, iy, iz, nx, ny, nz, i, j; in __k_clog_r() local
259 if (ix < iy || (ix == iy && lx < ly)) { /* force x >= y */ in __k_clog_r()
261 n = ix, ix = iy; iy = n; in __k_clog_r()
265 nx = ix >> 20; ny = iy >> 20; in __k_clog_r()
267 if (ISINF(ix, lx)) in __k_clog_r()
291 if ((ix | lx) == 0) in __k_clog_r()
296 ix = ((int *)&x)[HIWORD]; in __k_clog_r()
300 nx = (ix >> 20) - 120; in __k_clog_r()
303 if ((ix | lx) == 0) in __k_clog_r()
339 ix = (ix & 0xfffff) | 0x3ff00000; in __k_clog_r()
[all …]
/illumos-gate/usr/src/common/mpi/
H A Dmplogic.c128 mp_size ix; in mpl_set_bit() local
134 ix = bitNum / MP_DIGIT_BIT; in mpl_set_bit()
135 if (ix + 1 > MP_USED(a)) { in mpl_set_bit()
144 MP_DIGIT(a,ix) |= mask; in mpl_set_bit()
146 MP_DIGIT(a,ix) &= ~mask; in mpl_set_bit()
158 mp_size bit, ix; in mpl_get_bit() local
208 int ix; in mpl_significant_bits() local
212 ix = MP_USED(a); in mpl_significant_bits()
213 for (ix = MP_USED(a); ix > 0; ) { in mpl_significant_bits()
215 d = MP_DIGIT(a, --ix); in mpl_significant_bits()
[all …]
H A Dmpi.c2514 for(ix = 1; ix < len; ix++) { in mp_read_raw()
2852 for(ix = 0; ix < count; ix++) in s_mp_setz()
2872 for(ix = 0; ix < count; ix++) in s_mp_copy()
2982 for(ix = pos - p; ix >= 0; ix--) in s_mp_lshd()
2986 for(ix = 0; ix < p; ix++) in s_mp_lshd()
3064 for (ix = USED(mp) - p; ix > 0; ix--) in s_mp_rshd()
3103 for (ix = 0; ix < used; ix++) { in s_mp_mul_2()
3521 for(ix = 0; ix < used; ix++) { in s_mp_add()
3615 for (ix = 0; ix < used; ix++) { in s_mp_add_3arg()
3849 for (ix = 0; ix < limit; ++ix) { in s_mp_sub_3arg()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/
H A Drdsib_buf.c296 for (ix = 0; ix < NDataRX; ix++) { in rds_init_recv_caches()
297 bp[ix].buf_nextp = &bp[ix + 1]; in rds_init_recv_caches()
314 for (ix = NDataRX; ix < nbuf - 1; ix++) { in rds_init_recv_caches()
504 for (ix = 0; ix < nbuf - 1; ix++) { in rds_init_send_pool()
533 for (ix = 0; ix < nbuf - 1; ix++) { in rds_init_send_pool()
734 for (ix = 1; ix < nbuf; ix++) { in rds_free_buf()
773 for (ix = 1; ix < nbuf; ix++) { in rds_get_buf()
989 for (ix = 0; ix < nbuf; ix++) { in rds_get_send_buf()
1009 for (ix = 1; ix < nbuf; ix++) { in rds_get_send_buf()
1112 for (ix = 1; ix < nbuf; ix++) { in rds_free_recv_buf()
[all …]

12345678