Searched refs:hx (Results 1 - 25 of 179) sorted by relevance

12345678

/illumos-gate/usr/src/lib/libm/common/R/
H A Dacoshf.c37 int hx; local
39 hx = *(int *)&x;
40 if (hx < 0x3f800000 || hx > 0x7f800000) /* x < 1 or x is nan */
H A Dsinhf.c37 int hx, ix; local
39 hx = *(int *)&x;
40 ix = hx & ~0x80000000;
46 s = (hx < 0)? -1.0e100 : 1.0e100;
H A Drintf.c69 int hx, k; local
72 hx = *(int *) &x;
73 k = (hx & ~0x80000000) >> 23;
80 return (((k - 127) & hx) < 0 ? -y : y);
89 int hx, k, j, ix; local
91 hx = *(int *) &x;
92 ix = hx & ~0x80000000;
97 if ((k & hx) != 0)
99 *(int *) &x = (hx + j) & ~k;
104 (0x80000000 & hx);
114 int hx, k; local
124 int hx, ix, k, j, m; local
144 int hx, k; local
[all...]
H A Dfloorf.c60 int hx, k, j, ix; local
62 hx = *(int *) &x;
63 ix = hx & ~0x80000000;
67 if ((k & hx) != 0)
69 j = k & (~(hx >> 31));
70 *(int *) &x = (hx + j) & ~k;
74 if (hx > 0)
88 int hx, k, j, ix; local
90 hx = *(int *) &x;
91 ix = hx
[all...]
H A Datan2pif.c35 int ix, iy, hx, hy; local
39 hx = ix & ~0x80000000;
41 if (hx > 0x7f800000 || hy > 0x7f800000) /* x or y is nan */
43 if ((hx | hy) == 0) {
H A Dlog10f.c37 int hx, ix; local
40 hx = *(int *)&x;
41 ix = hx & ~0x80000000;
50 if (hx < 0) {
/illumos-gate/usr/src/lib/libm/common/m9x/
H A Dfrexpf.c40 unsigned hx; local
44 hx = xx.i & ~0x80000000;
46 if (hx >= 0x7f800000) { /* x is infinite or NaN */
52 if (hx < 0x00800000) { /* x is subnormal or zero */
53 if (hx == 0) {
59 xx.f = (int) xx.i < 0 ? -(int) hx : (int) hx;
60 hx = xx.i & ~0x80000000;
66 *exp = e + (hx >> 23) - 0x7e;
H A Dtruncf.c40 unsigned hx, sx, i; local
43 hx = xx.i & ~0x80000000;
45 if (hx < 0x4b000000) { /* |x| < 2^23 */
46 if (hx < 0x3f800000) /* |x| < 1 */
50 i = 1 << (0x95 - (hx >> 23));
53 } else if (hx < 0x7f800000) /* |x| is integral */
57 return (hx > 0x7f800000 ? x * x : x + x);
H A Dround.c40 unsigned hx, sx, i; local
43 hx = xx.i[HIWORD] & ~0x80000000;
45 if (hx < 0x43300000) { /* |x| < 2^52 */
46 if (hx < 0x3ff00000) { /* |x| < 1 */
47 if (hx >= 0x3fe00000)
53 if (hx < 0x41300000) {
54 i = 1 << (0x412 - (hx >> 20));
58 i = 1 << (0x432 - (hx >> 20));
65 } else if (hx < 0x7ff00000)
69 return (hx >
[all...]
H A Dtrunc.c40 unsigned hx, sx, i; local
43 hx = xx.i[HIWORD] & ~0x80000000;
45 if (hx < 0x43300000) { /* |x| < 2^52 */
46 if (hx < 0x3ff00000) /* |x| < 1 */
50 if (hx < 0x41300000) {
51 i = 1 << (0x412 - (hx >> 20));
55 i = 1 << (0x432 - (hx >> 20));
59 } else if (hx < 0x7ff00000)
63 return (hx >= 0x7ff80000 ? x : x + x);
H A Dfrexpl.c42 unsigned hx; local
46 hx = xx.i[0] & ~0x80000000;
48 if (hx >= 0x7fff0000) { /* x is infinite or NaN */
54 if (hx < 0x00010000) { /* x is subnormal or zero */
55 if ((hx | xx.i[1] | xx.i[2] | xx.i[3]) == 0) {
62 while ((hx | (xx.i[1] & 0xffff0000)) == 0) {
63 hx = xx.i[1];
69 while (hx < 0x10000) {
70 hx = (hx <<
93 unsigned hx; local
[all...]
H A Dllroundf.c44 unsigned hx, sx, i; local
47 hx = xx.i & ~0x80000000;
50 if (hx < 0x4b000000) { /* |x| < 2^23 */
52 if (hx < 0x3f800000) {
53 if (hx >= 0x3f000000)
59 i = 1 << (0x95 - (hx >> 23));
H A Dlroundf.c42 unsigned hx, sx, i; local
45 hx = xx.i & ~0x80000000;
47 if (hx < 0x4b000000) { /* |x| < 2^23 */
48 if (hx < 0x3f800000) { /* |x| < 1 */
49 if (hx >= 0x3f000000)
55 i = 1 << (0x95 - (hx >> 23));
H A Dllround.c53 unsigned hx, sx, i; local
56 hx = xx.i[HIWORD] & ~0x80000000;
59 if (hx < 0x43300000) { /* |x| < 2^52 */
61 if (hx < 0x3ff00000) {
62 if (hx >= 0x3fe00000)
68 if (hx < 0x41300000) {
69 i = 1 << (0x412 - (hx >> 20));
73 i = 1 << (0x432 - (hx >> 20));
H A Dlround.c50 unsigned hx, sx, i; local
53 hx = xx.i[HIWORD] & ~0x80000000;
55 if (hx < 0x43300000) { /* |x| < 2^52 */
56 if (hx < 0x3ff00000) { /* |x| < 1 */
57 if (hx >= 0x3fe00000)
63 if (hx < 0x41300000) {
64 i = 1 << (0x412 - (hx >> 20));
68 i = 1 << (0x432 - (hx >> 20));
H A Droundf.c40 unsigned hx, sx, i; local
43 hx = xx.i & ~0x80000000;
45 if (hx < 0x4b000000) { /* |x| < 2^23 */
46 if (hx < 0x3f800000) { /* |x| < 1 */
47 if (hx >= 0x3f000000)
53 i = 1 << (0x95 - (hx >> 23));
56 } else if (hx < 0x7f800000) /* |x| is integral */
60 return (hx > 0x7f800000 ? x * x : x + x);
H A Dremquo.c61 int n, hx, hy, hz, ix, iy, sx, sq, i, m; local
64 hx = __HI(x); /* high word of x */
68 sx = hx & 0x80000000; /* sign of x */
69 sq = (hx ^ hy) & 0x80000000; /* sign of x/y */
70 hx ^= sx; /* |x| */
75 if ((hy | ly) == 0 || hx >= 0x7ff00000 || /* y=0, or x !finite */
78 if (hx <= hy) {
79 if (hx < hy || lx < ly)
89 if (hx < 0x00100000) { /* subnormal x */
90 if (hx
213 int hx, hy, sx, sq; local
[all...]
H A Dnearbyintf.c41 unsigned hx, sx, i, frac; local
46 hx = xx.i & ~0x80000000;
49 if (hx >= 0x4b000000) { /* x is nan, inf, or already integral */
50 if (hx > 0x7f800000) /* x is nan */
53 } else if (hx == 0) /* x is zero */
64 if (hx < 0x3f800000) {
65 if (rm == FE_UPWARD || (rm == FE_TONEAREST && hx > 0x3f000000))
73 i = 1 << (0x96 - (hx >> 23));
74 frac = hx & (i - 1);
78 hx
[all...]
/illumos-gate/usr/src/lib/libm/common/C/
H A Dcopysign.c36 int hx, hy; local
38 hx = ((int *) &x)[HIWORD];
40 return (hx ^ hy) >= 0 ? (x) : (-x);
H A Dacosh.c60 int hx; local
62 hx = ((int *) &x)[HIWORD];
63 if (hx < 0x3ff00000) { /* x < 1 */
66 return (hx >= 0xfff80000 ? x : (x - x) / (x - x));
73 } else if (hx >= 0x41b00000) {
75 if (hx >= 0x7ff00000) { /* x is inf of NaN */
77 return (hx >= 0x7ff80000 ? x : x + x);
84 } else if (((hx - 0x3ff00000) | ((int *) &x)[LOWORD]) == 0) {
86 } else if (hx > 0x40000000) {
H A Dnextafter.c37 int hx, hy, k; local
42 hx = ((int *)&x)[HIWORD];
45 k = (hx & ~0x80000000) | lx;
55 } else if (hx >= 0) {
58 k = (lx == 0)? hx - 1 : hx;
62 k = (lx == 0xffffffff)? hx + 1 : hx;
68 k = (lx == 0)? hx - 1 : hx;
[all...]
H A Dceil.c48 int hx, lx, ix; local
50 hx = ((int *)&x)[HIWORD];
52 ix = hx & ~0x80000000;
55 t = (hx >= 0)? two52 : -two52;
62 return ((hx < 0)? -zero : one);
H A Dfloor.c48 int hx, lx, ix; local
50 hx = ((int *)&x)[HIWORD];
52 ix = hx & ~0x80000000;
55 t = (hx >= 0)? two52 : -two52;
62 return ((hx < 0)? -one : zero);
H A Dexp2.c62 int ix, hx, k; local
66 hx = ix & ~0x80000000;
68 if (hx >= 0x4090e000) { /* |x| >= 1080 or x is nan */
69 if (hx >= 0x7ff00000) { /* x is inf or nan */
78 if (hx < 0x3fe00000) { /* |x| < 0.5 */
79 if (hx < 0x3c000000)
/illumos-gate/usr/src/lib/libc/sparc/fp/
H A D_Q_scl.c46 int hx; local
49 hx = xx.i[0] & ~0x80000000;
51 if (hx < 0x10000) { /* x is zero or subnormal */
52 if ((hx | xx.i[1] | xx.i[2] | xx.i[3]) == 0)
56 while (hx == 0 && xx.i[1] < 0x10000) {
57 hx = xx.i[1];
63 while (hx < 0x10000) {
64 hx = (hx << 1) | (xx.i[1] >> 31);
70 xx.i[0] = hx | (x
103 int hx; local
[all...]

Completed in 169 milliseconds

12345678