Searched defs:hx (Results 51 - 75 of 164) sorted by relevance

1234567

/illumos-gate/usr/src/lib/libm/common/m9x/
H A Dnearbyint.c50 unsigned hx, sx, i, frac; local
55 hx = xx.i[HIWORD] & ~0x80000000;
58 if (hx >= 0x43300000) { /* x is nan, inf, or already integral */
59 if (hx >= 0x7ff00000) /* x is inf or nan */
61 return (hx >= 0x7ff80000 ? x : x + x);
67 } else if ((hx | xx.i[LOWORD]) == 0) /* x is zero */
78 if (hx < 0x3ff00000) {
80 (hx >= 0x3fe00000 && ((hx & 0xfffff) | xx.i[LOWORD]))))
89 j = 0x433 - (hx >> 2
[all...]
H A Droundl.c41 unsigned hx, sx, v; local
46 hx = xx.i[0] & ~0x80000000;
49 if (hx >= 0x406f0000) /* |x| >= 2^112 + ... or x is nan */
50 return (hx >= 0x7fff0000 ? x + x : x);
53 if (hx < 0x3fff0000) {
54 if (hx >= 0x3ffe0000)
59 xx.i[0] = hx;
60 j = 0x406f - (hx >> 16); /* 1 <= j <= 112 */
H A Dtruncl.c41 unsigned hx, sx; local
46 hx = xx.i[0] & ~0x80000000;
49 if (hx >= 0x406f0000) /* |x| >= 2^112 + ... or x is nan */
50 return (hx >= 0x7fff0000 ? x + x : x);
53 if (hx < 0x3fff0000)
56 j = 0x406f - (hx >> 16); /* 1 <= j <= 112 */
57 xx.i[0] = hx;
H A Dllroundl.c53 unsigned hx, sx, frac; local
58 hx = xx.i[0] & ~0x80000000;
61 if (hx > 0x403e0000) { /* |x| > 2^63 + ... or x is nan */
68 if (hx < 0x3fff0000) {
69 if (hx >= 0x3ffe0000)
75 j = 0x406f - (hx >> 16);
H A Dlrintl.c51 unsigned int hx, sx, frac, l, fsr; local
57 hx = xx.i[0] & ~0x80000000;
60 if (hx > 0x401e0000) { /* |x| > 2^31 + ... or x is nan */
64 } else if ((hx | xx.i[1] | xx.i[2] | xx.i[3]) == 0) /* x is zero */
76 if (hx < 0x3fff0000) {
79 if (rm == FSR_RP || (rm == FSR_RN && (hx >= 0x3ffe0000 &&
80 ((hx & 0xffff) | xx.i[1] | xx.i[2] | xx.i[3]))))
86 j = 0x406f - (hx >> 16); /* 91 <= j <= 112 */
H A Dnearbyintl.c49 unsigned hx, sx, i, frac; local
56 hx = xx.i[0] & ~0x80000000;
59 if (hx >= 0x406f0000) { /* x is nan, inf, or already integral */
61 if ((hx > 0x7fff0000 || (hx == 0x7fff0000 &&
62 (xx.i[1] | xx.i[2] | xx.i[3]))) && !(hx & 0x8000)) {
65 xx.i[0] = sx | hx | 0x8000;
68 } else if ((hx | xx.i[1] | xx.i[2] | xx.i[3]) == 0) /* x is zero */
80 if (hx < 0x3fff0000) {
81 if (rm == FSR_RP || (rm == FSR_RN && (hx >
[all...]
/illumos-gate/usr/src/lib/libm/common/C/
H A Dexp10.c71 int ix, hx, k; local
74 hx = ix & ~0x80000000;
76 if (hx >= 0x4074a000) { /* |x| >= 330 or x is nan */
77 if (hx >= 0x7ff00000) { /* x is inf or nan */
86 if (hx < 0x3c000000)
H A Dscalbn.c77 int *px, ix, hx, k; local
81 hx = ix & ~0x80000000;
82 k = hx >> 20;
88 if ((hx | px[LOWORD]) == 0 || n == 0)
H A D__rem_pio2.c67 int e0, i, j, nx, n, ix, hx, lx; local
69 hx = ((int *)&x)[HIWORD];
70 ix = hx & 0x7fffffff;
83 if (hx < 0) {
136 if (hx < 0) {
162 if (hx < 0) {
H A Dacos.c99 int hx, ix; local
101 hx = ((int *) &x)[HIWORD];
102 ix = hx & 0x7fffffff;
106 if (hx > 0) /* acos(1) = 0 */
129 } else if (hx < 0) {
H A Dcbrt.c228 unsigned int hx, sx, ex, j, offset; local
231 hx = xx.i[HIWORD] & ~0x80000000;
235 if (hx >= 0x7ff00000) /* x is inf or nan */
237 return hx >= 0x7ff80000 ? x : x + x;
243 if (hx < 0x00100000) { /* x is subnormal or zero */
244 if ((hx | xx.i[LOWORD]) == 0)
249 hx = xx.i[HIWORD] & ~0x80000000;
255 ex = hx & 0x7ff00000;
259 hx -= (j + j + j);
260 xx.i[HIWORD] = 0x3ff00000 + hx;
[all...]
H A Dexp.c288 int hx, ix, k, j, m; local
291 hx = ix & ~0x80000000;
293 if (hx < 0x3ff0a2b2) { /* |x| < 3/2 ln 2 */
294 if (hx < 0x3f862e42) { /* |x| < 1/64 ln 2 */
295 if (hx < 0x3ed00000) { /* |x| < 2^-18 */
302 if (hx < 0x3e300000)
313 k = hx >> 20;
314 j = (0x00100000 | (hx & 0x000fffff)) >> (0x40c - k);
325 if (hx >= 0x40862e42) { /* x is large, infinite, or nan */
326 if (hx >
[all...]
H A Dexpm1.c165 unsigned hx; local
167 hx = ((unsigned *) &x)[HIWORD]; /* high word of x */
168 xsb = hx & 0x80000000; /* sign bit of x */
173 hx &= 0x7fffffff; /* high word of |x| */
177 if (hx >= 0x4043687A) {
179 if (hx >= 0x40862E42) { /* if |x|>=709.78... -> inf */
180 if (hx >= 0x7ff00000) {
181 if (((hx & 0xfffff) | ((int *) &x)[LOWORD])
198 if (hx > 0x3fd62e42) { /* if |x| > 0.5 ln2 */
199 if (hx <
[all...]
H A Dlog1p.c127 int k, hx, hu, ax; local
129 hx = ((int *)&x)[HIWORD]; /* high word of x */
130 ax = hx & 0x7fffffff;
133 if (((hx - 0xfff00000) | ((int *)&x)[LOWORD]) == 0) /* -inf */
139 if (hx < 0x3FDA827A) { /* x < 0.41422 */
149 if (hx > 0 || hx <= (int)0xbfd2bec3) { /* -0.2929<x<0.41422 */
157 if (hx < 0x43400000) {
/illumos-gate/usr/src/lib/libm/common/R/
H A Dexpf.c347 int hx, ix, n; local
349 hx = *(int *)&xf;
350 ix = hx & ~0x80000000;
362 if (hx == 0xff800000)
366 if (hx > 0)
373 if (hx > 0)
390 xf = (float)((w * p) * (hx < 0 ? q * EN[n - 0x79] : q));
392 if ((unsigned)hx >= 0xc2800000u) {
393 if ((unsigned)hx >= 0xc2aeac50) { /* force underflow */
H A Dfmodf.c46 int hx, ix, iy, iz, k, ny, nd; local
48 hx = *(int *)&x;
49 ix = hx & 0x7fffffff;
103 * *(int *) &w = is & hx;
136 *(int *)&w = is & hx;
155 *(int *)&w = is & hx;
167 *(int *)&w = (is & hx) | (ix & im) | (ny << 23);
172 *(int *)&w = (is & hx) | ix;
H A Dlogf.c118 int hx, ix, i, exp, iy; local
120 hx = *(int *)&x;
121 ix = hx & ~0x80000000;
124 return ((hx < 0)? x * 0.0f : x * x);
127 if (hx < 0x00800000) { /* negative, zero, or subnormal */
128 if (hx <= 0) {
/illumos-gate/usr/src/lib/libm/common/complex/
H A Dccoshf.c44 int hx, ix, hy, iy, n; local
49 hx = THE_WORD(x);
50 ix = hx & 0x7fffffff;
97 if ((hx ^ hy) < 0)
H A Dcexp.c70 int n, ix, iy, hx, hy, lx, ly; local
74 hx = HI_WORD(x);
78 ix = hx & 0x7fffffff;
84 if (hx < 0) {
H A Dclog.c74 int n, ix, iy, hx, hy; local
79 hx = HI_WORD(x);
83 ix = hx & 0x7fffffff;
H A Dclogl.c52 int n, ix, iy, hx, hy; local
56 hx = HI_XWORD(x);
58 ix = hx & 0x7fffffff;
H A Dcsinhf.c44 int hx, ix, hy, iy, n; local
49 hx = THE_WORD(x);
50 ix = hx & 0x7fffffff;
97 if (hx < 0)
H A Dcsqrtf.c44 int ix, iy, hx, hy; local
48 hx = THE_WORD(x);
50 ix = hx & 0x7fffffff;
59 if (hx > 0) {
69 if (hx >= 0) {
82 if (hx >= 0) {
H A Dctanhf.c42 int hx, ix, hy, iy; local
47 hx = THE_WORD(x);
48 ix = hx & 0x7fffffff;
110 if (hx < 0)
H A Dctanhl.c43 int hx, ix, hy, iy; local
48 hx = HI_XWORD(x);
49 ix = hx & 0x7fffffff;
113 if (hx < 0)

Completed in 96 milliseconds

1234567