Lines Matching refs:hx
22 short hx, hy; in copysign() local
23 GET_HALF_WORD(hx, x); in copysign()
26 SET_HALF_WORD(x, (hx & 0x7fff) | (hy & 0x8000)); in copysign()
32 short hx, ix; in frexp() local
35 GET_HALF_WORD(hx, x); in frexp()
36 ix = hx & 0x7fff; in frexp()
44 GET_HALF_WORD(hx, x); in frexp()
45 ix = hx & 0x7fff; in frexp()
52 hx = (hx & 0x83ff) | 0x3800; in frexp()
53 SET_HALF_WORD(x, hx); in frexp()
62 short hx, ix; in ilogb() local
63 GET_HALF_WORD(hx, x); in ilogb()
64 hx &= 0x7fff; in ilogb()
66 if (hx < 0x0400) { // subnormal in ilogb()
67 if (hx == 0) in ilogb()
69 for (hx <<= 5, ix = -14; hx > 0; hx <<= 1) in ilogb()
73 else if (hx < 0x7c00) { in ilogb()
74 return (hx >> 10) - 15; in ilogb()
118 short hx, hy, ix, iy; in nextafter() local
120 GET_HALF_WORD(hx, x); in nextafter()
122 ix = hx & 0x7fff; // |x| in nextafter()
135 if (hx >= 0) { // x >= 0 in nextafter()
136 if (hx > hy) in nextafter()
137 hx -= 1; // x > y, x -= 1 ulp in nextafter()
139 hx += 1; // x < y, x += 1 ulp in nextafter()
142 if (hy>= 0 || hx > hy) in nextafter()
143 hx -= 1; // x < y, x -= 1 ulp in nextafter()
145 hx += 1; in nextafter()
148 SET_HALF_WORD(x, hx); in nextafter()