Home
last modified time | relevance | path

Searched refs:hy (Results 1 – 25 of 108) sorted by relevance

12345

/titanic_44/usr/src/lib/libmvec/common/
H A D__vatan2.c74 int i, k, hx, hy, sx, sy; in __vatan2() local
79 hy = HI(y); in __vatan2()
80 sy = hy & 0x80000000; in __vatan2()
81 hy &= ~0x80000000; in __vatan2()
88 if (hy > hx || (hy == hx && LO(y) > LO(x))) in __vatan2()
91 hx = hy; in __vatan2()
92 hy = i; in __vatan2()
121 if (hx >= 0x7fe00000 || hx - hy >= 0x03600000) in __vatan2()
127 else if (hy >= 0x7ff00000) in __vatan2()
138 if (hx - hy >= 0x03600000) in __vatan2()
[all …]
H A D__vpow.c520 hy = HI(py); \
523 sy = hy >> 31; \
525 hy &= 0x7fffffff; \
528 if (hy < 0x3bf00000) /* |Y| < 2^(-64) */ \
531 if ((hy | ly) == 0) /* pow(X,0) */ \
547 exp = hy >> 20; /* Y exponent */ \
557 hy > 0x7ff00000 || (hy == 0x7ff00000 && ly != 0)) /* |X| or |Y| = Nan */ \
559 if (hy == 0x7ff00000 && (ly == 0)) /* |Y| = Inf */ \
567 HI(pz) = hy; \
590 i0 = hy >> (20 - (exp - 0x3ff)); \
[all …]
/titanic_44/usr/src/lib/libm/common/m9x/
H A Dremquo.c61 int n, hx, hy, hz, ix, iy, sx, sq, i, m; in fmodquo() local
66 hy = __HI(y); /* high word of y */ in fmodquo()
69 sq = (hx ^ hy) & 0x80000000; /* sign of x/y */ in fmodquo()
71 hy &= 0x7fffffff; /* |y| */ in fmodquo()
75 if ((hy | ly) == 0 || hx >= 0x7ff00000 || /* y=0, or x !finite */ in fmodquo()
76 (hy | ((ly | -ly) >> 31)) > 0x7ff00000) /* or y is NaN */ in fmodquo()
78 if (hx <= hy) { in fmodquo()
79 if (hx < hy || lx < ly) in fmodquo()
101 if (hy < 0x00100000) { /* subnormal y */ in fmodquo()
102 if (hy == 0) { in fmodquo()
[all …]
H A Dremquof.c215 int hx, hy, sx, sq; in remquof() local
219 hy = *(int *) &y; /* high word of y */ in remquof()
221 sq = (hx ^ hy) & is; /* sign of x/y */ in remquof()
223 hy &= 0x7fffffff; /* |y| */ in remquof()
227 if (hx >= ii || hy > ii || hy == 0) { in remquof()
234 if (hy <= 0x7f7fffff) { in remquof()
238 if (hy < 0x01000000) { in remquof()
/titanic_44/usr/src/lib/libm/common/C/
H A Datan2.c411 int i, k, hx, hy, sx, sy; in atan2() local
416 hy = ((int *)&oy)[HIWORD]; in atan2()
417 sy = hy & 0x80000000; in atan2()
418 hy &= ~0x80000000; in atan2()
424 if (hy > hx || (hy == hx && ((unsigned *)&oy)[LOWORD] > in atan2()
427 hx = hy; in atan2()
428 hy = i; in atan2()
451 if (hx >= 0x7fe00000 || hx - hy >= 0x03600000) { in atan2()
455 if (hy >= 0x7ff00000) in atan2()
462 if (hx - hy >= 0x03600000) { in atan2()
[all …]
H A Dcopysign.c36 int hx, hy; in copysign() local
39 hy = ((int *) &y)[HIWORD]; in copysign()
40 return (hx ^ hy) >= 0 ? (x) : (-x); in copysign()
/titanic_44/usr/src/lib/libm/common/R/
H A Dscalbf.c35 int ix, iy, hx, hy, n; in scalbf() local
40 hy = iy & ~0x80000000; in scalbf()
42 if (hx > 0x7f800000 || hy >= 0x7f800000) { in scalbf()
48 if (hy >= 0x4b000000) { in scalbf()
51 } else if (hy < 0x3f800000) { in scalbf()
53 return ((hy == 0)? x : (x - x) / (x - x)); in scalbf()
55 if (hy & ((1 << (0x96 - (hy >> 23))) - 1)) in scalbf()
H A Datan2f.c254 int i, k, hx, hy, ix, iy, sign; in atan2f() local
261 hy = iy & ~0x80000000; in atan2f()
265 if (hy > hx) { in atan2f()
269 hx = hy; in atan2f()
270 hy = i; in atan2f()
298 if (hx >= 0x7f800000 || hx - hy >= 0x0c800000) { in atan2f()
302 else if (hy >= 0x7f800000) in atan2f()
310 if (hy < 0x00800000) { in atan2f()
311 if (hy == 0) in atan2f()
316 hy = *(int *)&y; in atan2f()
[all …]
H A Dtanf.c78 int n, ix, hx, hy; in tanf() local
107 hy = ((int *)&y)[HIWORD] & ~0x80000000; in tanf()
108 if (hy < 0x3f800000) { /* |y| < 2**-7 */ in tanf()
137 hy = ((int *)&y)[HIWORD]; in tanf()
138 n = ((hy >> 20) & 0x7ff) - 1046; in tanf()
139 ((int *)&w)[HIWORD] = (hy & 0xfffff) | 0x41600000; in tanf()
142 if (hy < 0) { in tanf()
148 hy = ((int *)&y)[HIWORD] & ~0x80000000; in tanf()
149 if (hy < 0x3f800000) { /* |y| < 2**-7 */ in tanf()
H A Datan2pif.c35 int ix, iy, hx, hy; in atan2pif() local
40 hy = iy & ~0x80000000; in atan2pif()
41 if (hx > 0x7f800000 || hy > 0x7f800000) /* x or y is nan */ in atan2pif()
43 if ((hx | hy) == 0) { in atan2pif()
H A Dsinf.c78 int n, ix, hx, hy; in sinf() local
128 hy = ((int *)&y)[HIWORD]; in sinf()
129 n = ((hy >> 20) & 0x7ff) - 1046; in sinf()
130 ((int *)&w)[HIWORD] = (hy & 0xfffff) | 0x41600000; in sinf()
133 if (hy < 0) { in sinf()
H A Dsincosf.c100 int n, ix, hx, hy; in sincosf() local
161 hy = ((int *)&y)[HIWORD]; in sincosf()
162 n = ((hy >> 20) & 0x7ff) - 1046; in sincosf()
163 ((int *)&w)[HIWORD] = (hy & 0xfffff) | 0x41600000; in sincosf()
166 if (hy < 0) { in sincosf()
/titanic_44/usr/src/lib/libm/common/complex/
H A Dk_atan2.c459 int ix, iy, hx, hy, lx, ly; in __k_atan2() local
461 hy = ((int *) &y)[HIWORD]; in __k_atan2()
463 iy = hy & ~0x80000000; in __k_atan2()
483 *w = (hy >= 0)? pio2_lo : -pio2_lo; in __k_atan2()
484 return ((hy >= 0)? pio2 : -pio2); in __k_atan2()
486 *w = (hy >= 0)? pio4_lo : -pio4_lo; in __k_atan2()
487 return ((hy >= 0)? pio4 : -pio4); in __k_atan2()
489 *w = (hy >= 0)? pi3o4_lo : -pi3o4_lo; in __k_atan2()
490 return ((hy >= 0)? pi3o4 : -pi3o4); in __k_atan2()
497 *w = (hy >= 0)? pi_lo : -pi_lo; in __k_atan2()
[all …]
H A Dk_atan2l.c725 int ix, iy, hx, hy; in __k_atan2l() local
727 hy = HI_XWORD(y); in __k_atan2l()
729 iy = hy & ~0x80000000; in __k_atan2l()
746 *w = (hy >= 0)? pio2_lo : -pio2_lo; in __k_atan2l()
747 return ((hy >= 0)? pio2 : -pio2); in __k_atan2l()
749 *w = (hy >= 0)? pio4_lo : -pio4_lo; in __k_atan2l()
750 return ((hy >= 0)? pio4 : -pio4); in __k_atan2l()
752 *w = (hy >= 0)? pi3o4_lo : -pi3o4_lo; in __k_atan2l()
753 return ((hy >= 0)? pi3o4 : -pi3o4); in __k_atan2l()
760 *w = (hy >= 0)? pi_lo : -pi_lo; in __k_atan2l()
[all …]
H A Dcprojl.c43 int hy; in cprojl() local
48 hy = ((int *) &y)[2] << 16; in cprojl()
50 hy = ((int *) &y)[0]; in cprojl()
54 LD_IM(z) = hy >= 0 ? zero : -zero; in cprojl()
57 LD_IM(z) = hy >= 0 ? zero : -zero; in cprojl()
H A Dcprojf.c42 int ix, iy, hx, hy; in cprojf() local
47 hy = THE_WORD(y); in cprojf()
49 iy = hy & 0x7fffffff; in cprojf()
52 F_IM(z) = hy >= 0 ? zero : -zero; in cprojf()
55 F_IM(z) = hy >= 0 ? zero : -zero; in cprojf()
H A Dcproj.c51 int ix, iy, hx, hy, lx, ly; in cproj() local
57 hy = HI_WORD(y); in cproj()
60 iy = hy & 0x7fffffff; in cproj()
63 D_IM(z) = hy >= 0 ? zero : -zero; in cproj()
66 D_IM(z) = hy >= 0 ? zero : -zero; in cproj()
H A Dccoshl.c42 int hx, ix, hy, iy, n; in ccoshl() local
49 hy = HI_XWORD(y); in ccoshl()
50 iy = hy & 0x7fffffff; in ccoshl()
88 if ((hx ^ hy) < 0) in ccoshl()
H A Dcsinh.c84 int hx, ix, lx, hy, iy, ly, n; in csinh() local
92 hy = HI_WORD(y); in csinh()
94 iy = hy & 0x7fffffff; in csinh()
134 if (hy < 0) in csinh()
H A Dcsinhl.c42 int hx, ix, hy, iy, n; in csinhl() local
49 hy = HI_XWORD(y); in csinhl()
50 iy = hy & 0x7fffffff; in csinhl()
90 if (hy < 0) in csinhl()
H A Dcsqrtf.c44 int ix, iy, hx, hy; in csqrtf() local
49 hy = THE_WORD(y); in csqrtf()
51 iy = hy & 0x7fffffff; in csqrtf()
90 if (hy < 0) in csqrtf()
H A Dccosh.c84 int hx, ix, lx, hy, iy, ly, n; in ccosh() local
92 hy = HI_WORD(y); in ccosh()
94 iy = hy & 0x7fffffff; in ccosh()
132 if ((hx ^ hy) < 0) in ccosh()
H A Dccoshf.c44 int hx, ix, hy, iy, n; in ccoshf() local
51 hy = THE_WORD(y); in ccoshf()
52 iy = hy & 0x7fffffff; in ccoshf()
97 if ((hx ^ hy) < 0) in ccoshf()
H A Dcsinhf.c44 int hx, ix, hy, iy, n; in csinhf() local
51 hy = THE_WORD(y); in csinhf()
52 iy = hy & 0x7fffffff; in csinhf()
99 if (hy < 0) in csinhf()
H A Dctanhf.c42 int hx, ix, hy, iy; in ctanhf() local
49 hy = THE_WORD(y); in ctanhf()
50 iy = hy & 0x7fffffff; in ctanhf()
112 if (hy < 0) in ctanhf()

12345