Home
last modified time | relevance | path

Searched refs:hx (Results 1 – 25 of 181) sorted by relevance

12345678

/illumos-gate/usr/src/lib/libm/common/m9x/
H A Dremquo.c114 hx = 0x00100000 | (0x000fffff & hx); in fmodquo()
118 hx = (hx << n) | (lx >> (32 - n)); in fmodquo()
142 hz = hx - hy; in fmodquo()
147 hx = hx + hx + (lx >> 31); in fmodquo()
165 hz = hx - hy; in fmodquo()
170 hx = hz; in fmodquo()
182 hx = hx + hx + (lx >> 31); in fmodquo()
187 hx = (hx - 0x00100000) | ((iy + 1023) << 20); in fmodquo()
194 hx >>= n; in fmodquo()
197 hx = sx; in fmodquo()
[all …]
H A Dmodfl.c42 unsigned hx, s; in __modfl() local
45 hx = xx.i[0] & ~0x80000000; in __modfl()
49 if (hx < 0x7fff0000 || (hx == 0x7fff0000 && in __modfl()
66 if (hx < 0x40100000) { in __modfl()
69 } else if (hx < 0x40300000) { in __modfl()
73 } else if (hx < 0x40500000) { in __modfl()
104 unsigned hx, s; in __modfl() local
111 hx = xx.i[2] & 0x7fff; in __modfl()
115 if (hx < 0x7fff || (hx == 0x7fff && in __modfl()
123 if (hx < 0x3fff) { /* |x| < 1 */ in __modfl()
[all …]
H A Dfrexpl.c42 unsigned hx; in __frexpl() local
46 hx = xx.i[0] & ~0x80000000; in __frexpl()
63 hx = xx.i[1]; in __frexpl()
69 while (hx < 0x10000) { in __frexpl()
70 hx = (hx << 1) | (xx.i[1] >> 31); in __frexpl()
76 xx.i[0] = s | hx; in __frexpl()
81 *exp = e + (hx >> 16) - 0x3ffe; in __frexpl()
93 unsigned hx; in __frexpl() local
97 hx = xx.i[2] & 0x7fff; in __frexpl()
113 hx = xx.i[2] & 0x7fff; in __frexpl()
[all …]
H A Dnearbyintf.c41 unsigned hx, sx, i, frac; in __nearbyintf() local
46 hx = xx.i & ~0x80000000; in __nearbyintf()
64 if (hx < 0x3f800000) { in __nearbyintf()
73 i = 1 << (0x96 - (hx >> 23)); in __nearbyintf()
74 frac = hx & (i - 1); in __nearbyintf()
78 hx &= ~(i - 1); in __nearbyintf()
81 xx.i = sx | (hx + i); in __nearbyintf()
83 xx.i = sx | hx; in __nearbyintf()
107 unsigned hx, sx, fsr, oldfsr;
112 hx = xx.i & ~0x80000000;
[all …]
H A Dnexttowardf.c73 unsigned hx; in __nexttowardf() local
85 hx = xx.i & ~0x80000000; in __nexttowardf()
102 if (hx == 0) /* x is zero */ in __nexttowardf()
109 if (hx == 0) /* x is zero */ in __nexttowardf()
118 hx = xx.i & ~0x80000000; in __nexttowardf()
119 if (hx == 0x7f800000) { in __nexttowardf()
122 } else if (hx < 0x00800000) { in __nexttowardf()
138 unsigned hx; in __nexttowardf() local
143 hx = xx.i & ~0x80000000; in __nexttowardf()
169 hx = xx.i & ~0x80000000; in __nexttowardf()
[all …]
H A Dnexttoward.c84 unsigned hx; in __nexttoward() local
113 if (hx == 0) { /* x is zero */ in __nexttoward()
124 if (hx == 0) { /* x is zero */ in __nexttoward()
137 hx = xx.i[0] & ~0x80000000; in __nexttoward()
138 if (hx == 0x7ff00000) { in __nexttoward()
141 } else if (hx < 0x00100000) { in __nexttoward()
168 unsigned hx; in __nexttoward() local
183 if (hx == 0) { /* x is zero */ in __nexttoward()
207 hx = xx.i[1] & ~0x80000000; in __nexttoward()
208 if (hx == 0x7ff00000) { in __nexttoward()
[all …]
H A Dround.c40 unsigned hx, sx, i; in round() local
43 hx = xx.i[HIWORD] & ~0x80000000; in round()
45 if (hx < 0x43300000) { /* |x| < 2^52 */ in round()
46 if (hx < 0x3ff00000) { /* |x| < 1 */ in round()
47 if (hx >= 0x3fe00000) in round()
53 if (hx < 0x41300000) { in round()
54 i = 1 << (0x412 - (hx >> 20)); in round()
58 i = 1 << (0x432 - (hx >> 20)); in round()
65 } else if (hx < 0x7ff00000) in round()
69 return (hx >= 0x7ff80000 ? x : x + x); in round()
H A Dfrexpf.c40 unsigned hx; in __frexpf() local
44 hx = xx.i & ~0x80000000; in __frexpf()
46 if (hx >= 0x7f800000) { /* x is infinite or NaN */ in __frexpf()
52 if (hx < 0x00800000) { /* x is subnormal or zero */ in __frexpf()
53 if (hx == 0) { in __frexpf()
59 xx.f = (int) xx.i < 0 ? -(int) hx : (int) hx; in __frexpf()
60 hx = xx.i & ~0x80000000; in __frexpf()
66 *exp = e + (hx >> 23) - 0x7e; in __frexpf()
H A Dtrunc.c40 unsigned hx, sx, i; in trunc() local
43 hx = xx.i[HIWORD] & ~0x80000000; in trunc()
45 if (hx < 0x43300000) { /* |x| < 2^52 */ in trunc()
46 if (hx < 0x3ff00000) /* |x| < 1 */ in trunc()
50 if (hx < 0x41300000) { in trunc()
51 i = 1 << (0x412 - (hx >> 20)); in trunc()
55 i = 1 << (0x432 - (hx >> 20)); in trunc()
59 } else if (hx < 0x7ff00000) in trunc()
63 return (hx >= 0x7ff80000 ? x : x + x); in trunc()
H A Droundf.c40 unsigned hx, sx, i; in roundf() local
43 hx = xx.i & ~0x80000000; in roundf()
45 if (hx < 0x4b000000) { /* |x| < 2^23 */ in roundf()
46 if (hx < 0x3f800000) { /* |x| < 1 */ in roundf()
47 if (hx >= 0x3f000000) in roundf()
53 i = 1 << (0x95 - (hx >> 23)); in roundf()
56 } else if (hx < 0x7f800000) /* |x| is integral */ in roundf()
60 return (hx > 0x7f800000 ? x * x : x + x); in roundf()
/illumos-gate/usr/src/lib/libm/common/R/
H A Drintf.c69 int hx, k; in aintf() local
72 hx = *(int *) &x; in aintf()
89 int hx, k, j, ix; in anintf() local
91 hx = *(int *) &x; in anintf()
114 int hx, k; in irintf() local
116 hx = *(int *) &x; in irintf()
127 hx = *(int *) &x; in nintf()
135 hx = hx >> 31; in nintf()
136 return ((((ix + j) >> (m + 1)) ^ hx) - hx); in nintf()
144 int hx, k; in rintf() local
[all …]
H A Dfloorf.c60 int hx, k, j, ix; in ceilf() local
62 hx = *(int *) &x; in ceilf()
63 ix = hx & ~0x80000000; in ceilf()
67 if ((k & hx) != 0) in ceilf()
74 if (hx > 0) in ceilf()
88 int hx, k, j, ix; in floorf() local
90 hx = *(int *) &x; in floorf()
91 ix = hx & ~0x80000000; in floorf()
95 if ((k & hx) != 0) in floorf()
97 j = k & (hx >> 31); in floorf()
[all …]
/illumos-gate/usr/src/lib/libmvec/common/
H A D__vatan2.c88 if (hy > hx || (hy == hx && LO(y) > LO(x))) in __vatan2()
90 i = hx; in __vatan2()
91 hx = hy; in __vatan2()
121 if (hx >= 0x7fe00000 || hx - hy >= 0x03600000) in __vatan2()
203 if (hy > hx || (hy == hx && LO(y) > LO(x))) in __vatan2()
205 i = hx; in __vatan2()
206 hx = hy; in __vatan2()
236 if (hx >= 0x7fe00000 || hx - hy >= 0x03600000) in __vatan2()
318 if (hy > hx || (hy == hx && LO(y) > LO(x))) in __vatan2()
320 i = hx; in __vatan2()
[all …]
H A D__vatan2f.c72 hx = *(int*)x; in __vatan2f()
80 if (hy0 > hx) in __vatan2f()
84 i = hx; in __vatan2f()
85 hx = hy0; in __vatan2f()
122 if (hx >= 0x7f800000 || hx - hy0 >= 0x0c800000) in __vatan2f()
198 i = hx; in __vatan2f()
199 hx = hy1; in __vatan2f()
236 if (hx >= 0x7f800000 || hx - hy1 >= 0x0c800000) in __vatan2f()
310 i = hx; in __vatan2f()
311 hx = hy2; in __vatan2f()
[all …]
H A D__vsinbigf.c73 unsigned hx, xsb; in __vlibm_vsin_bigf() local
77 hx = HI(&tx); in __vlibm_vsin_bigf()
79 hx &= ~0x80000000; in __vlibm_vsin_bigf()
80 if (hx <= 0x413921fb || hx >= 0x7ff00000) in __vlibm_vsin_bigf()
110 hx = HI(&ty[0]); in __vlibm_vsin_bigf()
113 if (hx & 0x80000000) in __vlibm_vsin_bigf()
117 hx &= ~0x80000000; in __vlibm_vsin_bigf()
119 if (hx < 0x3fc40000) in __vlibm_vsin_bigf()
142 if (hx & 0x80000000) in __vlibm_vsin_bigf()
146 hx &= ~0x80000000; in __vlibm_vsin_bigf()
[all …]
H A D__vsinbig.c73 unsigned hx, xsb; in __vlibm_vsin_big() local
76 hx = HI(x); in __vlibm_vsin_big()
78 hx &= ~0x80000000; in __vlibm_vsin_big()
79 if (hx <= thresh || hx >= 0x7ff00000) in __vlibm_vsin_big()
109 hx = HI(&ty[0]); in __vlibm_vsin_big()
112 if (hx & 0x80000000) in __vlibm_vsin_big()
116 hx &= ~0x80000000; in __vlibm_vsin_big()
118 if (hx < 0x3fc40000) in __vlibm_vsin_big()
141 if (hx & 0x80000000) in __vlibm_vsin_big()
145 hx &= ~0x80000000; in __vlibm_vsin_big()
[all …]
H A D__vcosbig.c73 unsigned hx, xsb; in __vlibm_vcos_big() local
76 hx = HI(x); in __vlibm_vcos_big()
78 hx &= ~0x80000000; in __vlibm_vcos_big()
79 if (hx <= thresh || hx >= 0x7ff00000) in __vlibm_vcos_big()
110 hx = HI(&ty[0]); in __vlibm_vcos_big()
113 if (hx & 0x80000000) in __vlibm_vcos_big()
117 hx &= ~0x80000000; in __vlibm_vcos_big()
119 if (hx < 0x3fc40000) in __vlibm_vcos_big()
142 if (hx & 0x80000000) in __vlibm_vcos_big()
146 hx &= ~0x80000000; in __vlibm_vcos_big()
[all …]
H A D__vcosbigf.c73 unsigned hx, xsb; in __vlibm_vcos_bigf() local
77 hx = HI(&tx); in __vlibm_vcos_bigf()
79 hx &= ~0x80000000; in __vlibm_vcos_bigf()
80 if (hx <= 0x413921fb || hx >= 0x7ff00000) in __vlibm_vcos_bigf()
111 hx = HI(&ty[0]); in __vlibm_vcos_bigf()
114 if (hx & 0x80000000) in __vlibm_vcos_bigf()
118 hx &= ~0x80000000; in __vlibm_vcos_bigf()
120 if (hx < 0x3fc40000) in __vlibm_vcos_bigf()
143 if (hx & 0x80000000) in __vlibm_vcos_bigf()
147 hx &= ~0x80000000; in __vlibm_vcos_bigf()
[all …]
H A D__vsincosbigf.c73 unsigned hx, xsb; in __vlibm_vsincos_bigf() local
77 hx = HI(&tx); in __vlibm_vsincos_bigf()
78 xsb = hx & 0x80000000; in __vlibm_vsincos_bigf()
79 hx &= ~0x80000000; in __vlibm_vsincos_bigf()
80 if (hx <= 0x413921fb || hx >= 0x7ff00000) in __vlibm_vsincos_bigf()
82 e0 = (hx >> 20) - 1046; in __vlibm_vsincos_bigf()
110 hx = HI(&ty[0]); in __vlibm_vsincos_bigf()
111 if (hx & 0x80000000) in __vlibm_vsincos_bigf()
115 hx &= ~0x80000000; in __vlibm_vsincos_bigf()
118 if (hx < 0x3fc40000) in __vlibm_vsincos_bigf()
[all …]
/illumos-gate/usr/src/lib/libc/sparc/fp/
H A D_Q_scl.c46 int hx; in _Q_scl() local
49 hx = xx.i[0] & ~0x80000000; in _Q_scl()
57 hx = xx.i[1]; in _Q_scl()
63 while (hx < 0x10000) { in _Q_scl()
64 hx = (hx << 1) | (xx.i[1] >> 31); in _Q_scl()
73 if ((hx >> 16) + n < 1) { in _Q_scl()
103 int hx; in _Q_scle() local
106 hx = (xx.i[0] >> 16) & 0x7fff; in _Q_scle()
108 if (hx == 0) /* x must be zero */ in _Q_scle()
111 hx += n; in _Q_scle()
[all …]
/illumos-gate/usr/src/lib/libm/common/C/
H A Datan2.c411 int i, k, hx, hy, sx, sy; in atan2() local
420 hx = ((int *)&ox)[HIWORD]; in atan2()
421 sx = hx & 0x80000000; in atan2()
422 hx &= ~0x80000000; in atan2()
424 if (hy > hx || (hy == hx && ((unsigned *)&oy)[LOWORD] > in atan2()
426 i = hx; in atan2()
427 hx = hy; in atan2()
451 if (hx >= 0x7fe00000 || hx - hy >= 0x03600000) { in atan2()
452 if (hx >= 0x7ff00000) { in atan2()
470 hx -= 0x00300000; in atan2()
[all …]
H A Dnextafter.c37 int hx, hy, k; in nextafter() local
42 hx = ((int *)&x)[HIWORD]; in nextafter()
45 k = (hx & ~0x80000000) | lx; in nextafter()
55 } else if (hx >= 0) { in nextafter()
58 k = (lx == 0)? hx - 1 : hx; in nextafter()
62 k = (lx == 0xffffffff)? hx + 1 : hx; in nextafter()
68 k = (lx == 0)? hx - 1 : hx; in nextafter()
72 k = (lx == 0xffffffff)? hx + 1 : hx; in nextafter()
H A Dcbrt.c228 unsigned int hx, sx, ex, j, offset; in __cbrt() local
231 hx = xx.i[HIWORD] & ~0x80000000; in __cbrt()
235 if (hx >= 0x7ff00000) /* x is inf or nan */ in __cbrt()
237 return hx >= 0x7ff80000 ? x : x + x; in __cbrt()
243 if (hx < 0x00100000) { /* x is subnormal or zero */ in __cbrt()
244 if ((hx | xx.i[LOWORD]) == 0) in __cbrt()
249 hx = xx.i[HIWORD] & ~0x80000000; in __cbrt()
255 ex = hx & 0x7ff00000; in __cbrt()
259 hx -= (j + j + j); in __cbrt()
260 xx.i[HIWORD] = 0x3ff00000 + hx; in __cbrt()
[all …]
H A Dacosh.c60 int hx; in acosh() local
62 hx = ((int *) &x)[HIWORD]; in acosh()
63 if (hx < 0x3ff00000) { /* x < 1 */ in acosh()
66 return (hx >= 0xfff80000 ? x : (x - x) / (x - x)); in acosh()
73 } else if (hx >= 0x41b00000) { in acosh()
75 if (hx >= 0x7ff00000) { /* x is inf of NaN */ in acosh()
77 return (hx >= 0x7ff80000 ? x : x + x); in acosh()
84 } else if (((hx - 0x3ff00000) | ((int *) &x)[LOWORD]) == 0) { in acosh()
86 } else if (hx > 0x40000000) { in acosh()
/illumos-gate/usr/src/lib/libmvec/common/vis/
H A D__vrsqrt.S91 ! hx = *(int*)px;
92 ! if ( hx >= 0x7ff00000 )
101 ! if ( hx < 0x00100000 )
103 ! ax = hx & 0x7fffffff;
115 ! else if ( hx >= 0 )
141 ! iexp = hx >> 21;
146 ! hx >>= 10;
147 ! hx &= 0x7f8;
148 ! hx += 8;
149 ! hx &= -16;
[all …]

12345678