Home
last modified time | relevance | path

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

1234

/third_party/jerryscript/jerry-libm/
H A Dfmod.c41 int n, hx, hy, hz, ix, iy, sx, i; in fmod() local
44 hx = __HI (x); /* high word of x */ in fmod()
48 sx = hx & 0x80000000; /* sign of x */ in fmod()
49 hx ^= sx; /* |x| */ in fmod()
53 if ((hy | ly) == 0 || (hx >= 0x7ff00000) || /* y = 0, or x not finite */ in fmod()
58 if (hx <= hy) in fmod()
60 if ((hx < hy) || (lx < ly)) /* |x| < |y| return x */ in fmod()
71 if (hx < 0x00100000) /* subnormal x */ in fmod()
73 if (hx == 0) in fmod()
82 for (ix = -1022, i = (hx << 1 in fmod()
[all...]
H A Dnextafter.c34 int hx, hy, ix, iy; in nextafter() local
38 hx = __HI (x); /* high word of x */ in nextafter()
42 ix = hx & 0x7fffffff; /* |x| */ in nextafter()
71 if (hx >= 0) in nextafter()
73 if (hx > hy || ((hx == hy) && (lx > ly))) in nextafter()
77 hx -= 1; in nextafter()
88 hx += 1; in nextafter()
94 if (hy >= 0 || hx > hy || ((hx in nextafter()
[all...]
H A Dlog10.c73 int i, k, hx; in log10() local
77 hx = __HI (x); /* high word of x */ in log10()
81 if (hx < 0x00100000) in log10()
84 if (((hx & 0x7fffffff) | lx) == 0) in log10()
89 if (hx < 0) in log10()
96 hx = __HI (x); /* high word of x */ in log10()
98 if (hx >= 0x7ff00000) in log10()
102 k += (hx >> 20) - 1023; in log10()
104 hx = (hx in log10()
[all...]
H A Dlog.c97 int k, hx, i, j; in log() local
100 hx = __HI (x); /* high word of x */ in log()
104 if (hx < 0x00100000) /* x < 2**-1022 */ in log()
106 if (((hx & 0x7fffffff) | lx) == 0) /* log(+-0) = -inf */ in log()
110 if (hx < 0) /* log(-#) = NaN */ in log()
116 hx = __HI (x); /* high word of x */ in log()
118 if (hx >= 0x7ff00000) in log()
122 k += (hx >> 20) - 1023; in log()
123 hx &= 0x000fffff; in log()
124 i = (hx in log()
[all...]
H A Dlog2.c56 int i, k, hx; in log2() local
60 hx = __HI (x); /* high word of x */ in log2()
64 if (hx < 0x00100000) in log2()
66 if (((hx & 0x7fffffff) | lx) == 0) in log2()
70 if (hx < 0) in log2()
76 hx = __HI (x); /* high word of x */ in log2()
78 if (hx >= 0x7ff00000) in log2()
82 if (hx == 0x3ff00000 && lx == 0) in log2()
86 k += (hx >> 20) - 1023; in log2()
87 hx in log2()
[all...]
H A Dexpm1.c145 unsigned int hx; in expm1() local
147 hx = __HI (x); in expm1()
148 xsb = hx & 0x80000000; /* sign bit of x */ in expm1()
149 hx &= 0x7fffffff; /* high word of |x| */ in expm1()
152 if (hx >= 0x4043687A) in expm1()
155 if (hx >= 0x40862E42) in expm1()
158 if (hx >= 0x7ff00000) in expm1()
162 if (((hx & 0xfffff) | low) != 0) in expm1()
191 if (hx > 0x3fd62e42) in expm1()
194 if (hx < in expm1()
[all...]
H A Dscalbn.c43 int k, hx, lx; in scalbn() local
45 hx = __HI (x); in scalbn()
47 k = (hx & 0x7ff00000) >> 20; /* extract exponent */ in scalbn()
50 if ((lx | (hx & 0x7fffffff)) == 0) /* +-0 */ in scalbn()
55 hx = __HI (x); in scalbn()
56 k = ((hx & 0x7ff00000) >> 20) - 54; in scalbn()
75 ret.as_int.hi = (hx & 0x800fffff) | (k << 20); in scalbn()
92 ret.as_int.hi = (hx & 0x800fffff) | (k << 20); in scalbn()
H A Dacosh.c51 int hx; in acosh() local
52 hx = __HI (x); in acosh()
53 if (hx < 0x3ff00000) in acosh()
58 else if (hx >= 0x41b00000) in acosh()
61 if (hx >= 0x7ff00000) in acosh()
72 else if (((hx - 0x3ff00000) | __LO (x)) == 0) in acosh()
77 else if (hx > 0x40000000) in acosh()
H A Disnan.c37 int hx, lx; in isnan() local
39 hx = (__HI (x) & 0x7fffffff); in isnan()
41 hx |= (unsigned) (lx | (-lx)) >> 31; in isnan()
42 hx = 0x7ff00000 - hx; in isnan()
43 return ((unsigned) (hx)) >> 31; in isnan()
H A Dexp.c125 unsigned hx; in exp() local
127 hx = __HI (x); /* high word of x */ in exp()
128 xsb = (hx >> 31) & 1; /* sign bit of x */ in exp()
129 hx &= 0x7fffffff; /* high word of |x| */ in exp()
132 if (hx >= 0x40862E42) /* if |x| >= 709.78... */ in exp()
134 if (hx >= 0x7ff00000) in exp()
136 if (((hx & 0xfffff) | __LO (x)) != 0) /* NaN */ in exp()
156 if (hx > 0x3fd62e42) /* if |x| > 0.5 ln2 */ in exp()
158 if (hx < 0x3FF0A2B2) /* and |x| < 1.5 ln2 */ in exp()
173 else if (hx < in exp()
[all...]
H A Dlog1p.c110 int k, hx, hu, ax; in log1p() local
112 hx = __HI (x); in log1p()
113 ax = hx & 0x7fffffff; in log1p()
116 if (hx < 0x3FDA827A) in log1p()
145 if ((hx > 0) || hx <= ((int) 0xbfd2bec4)) in log1p()
153 if (hx >= 0x7ff00000) in log1p()
159 if (hx < 0x43400000) in log1p()
/third_party/node/deps/v8/src/base/
H A Dieee754.cc168 int32_t e0, i, j, nx, n, ix, hx; in __ieee754_rem_pio2() local
172 GET_HIGH_WORD(hx, x); /* high word of x */ in __ieee754_rem_pio2()
173 ix = hx & 0x7FFFFFFF; in __ieee754_rem_pio2()
180 if (hx > 0) { in __ieee754_rem_pio2()
236 if (hx < 0) { in __ieee754_rem_pio2()
264 if (hx < 0) { in __ieee754_rem_pio2()
279 * 2. if x < 2^-27 (hx<0x3E400000 0), return 1 with inexact if x!=0.
654 * 2. if x < 2^-27 (hx<0x3E400000 0), return x with inexact if x!=0.
709 * 2. if x < 2^-28 (hx<0x3E300000 0), return x with inexact if x!=0.
758 int32_t ix, hx; in __kernel_tan() local
880 int32_t hx, ix; acos() local
941 int32_t hx; acosh() local
1011 int32_t hx, ix; asin() local
1074 int32_t hx, ix; asinh() local
1148 int32_t ix, hx, id; atan() local
1239 int32_t k, m, hx, hy, ix, iy; atan2() local
1468 uint32_t hx; exp() local
1558 int32_t hx, ix; atanh() local
1650 int32_t k, hx, i, j; log() local
1795 int32_t k, hx, hu, ax; log1p() local
1976 int32_t i, k, hx; log2() local
2083 int32_t i, k, hx; log10() local
2229 uint32_t hx; expm1() local
2341 int32_t hx; cbrt() local
2673 int hx, hy, ix, iy; pow() local
[all...]
/third_party/musl/src/math/
H A Dcbrtf.c31 uint32_t hx = u.i & 0x7fffffff; in cbrtf() local
33 if (hx >= 0x7f800000) /* cbrt(NaN,INF) is itself */ in cbrtf()
37 if (hx < 0x00800000) { /* zero or subnormal? */ in cbrtf()
38 if (hx == 0) in cbrtf()
41 hx = u.i & 0x7fffffff; in cbrtf()
42 hx = hx/3 + B2; in cbrtf()
44 hx = hx/3 + B1; in cbrtf()
46 u.i |= hx; in cbrtf()
[all...]
H A Dcbrt.c37 uint32_t hx = u.i>>32 & 0x7fffffff; in cbrt() local
39 if (hx >= 0x7ff00000) /* cbrt(NaN,INF) is itself */ in cbrt()
57 if (hx < 0x00100000) { /* zero or subnormal? */ in cbrt()
59 hx = u.i>>32 & 0x7fffffff; in cbrt()
60 if (hx == 0) in cbrt()
62 hx = hx/3 + B2; in cbrt()
64 hx = hx/3 + B1; in cbrt()
66 u.i |= (uint64_t)hx << 3 in cbrt()
[all...]
H A Dlog10.c40 uint32_t hx; in log10() local
43 hx = u.i>>32; in log10()
45 if (hx < 0x00100000 || hx>>31) { in log10()
48 if (hx>>31) in log10()
54 hx = u.i>>32; in log10()
55 } else if (hx >= 0x7ff00000) { in log10()
57 } else if (hx == 0x3ff00000 && u.i<<32 == 0) in log10()
61 hx += 0x3ff00000 - 0x3fe6a09e; in log10()
62 k += (int)(hx>>2 in log10()
[all...]
H A Dlog1p.c73 uint32_t hx,hu; in log1p() local
76 hx = u.i>>32; in log1p()
78 if (hx < 0x3fda827a || hx>>31) { /* 1+x < sqrt(2)+ */ in log1p()
79 if (hx >= 0xbff00000) { /* x <= -1.0 */ in log1p()
84 if (hx<<1 < 0x3ca00000<<1) { /* |x| < 2**-53 */ in log1p()
86 if ((hx&0x7ff00000) == 0) in log1p()
90 if (hx <= 0xbfd2bec4) { /* sqrt(2)/2- <= 1+x < sqrt(2)+ */ in log1p()
95 } else if (hx >= 0x7ff00000) in log1p()
H A Dacosf.c37 uint32_t hx,ix; in acosf() local
39 GET_FLOAT_WORD(hx, x); in acosf()
40 ix = hx & 0x7fffffff; in acosf()
44 if (hx >> 31) in acosf()
57 if (hx >> 31) { in acosf()
66 GET_FLOAT_WORD(hx,s); in acosf()
67 SET_FLOAT_WORD(df,hx&0xfffff000); in acosf()
/third_party/musl/porting/liteos_a/kernel/src/math/
H A Dcbrtf.c31 uint32_t hx = u.i & 0x7fffffff; in cbrtf() local
33 if (hx >= 0x7f800000) /* cbrt(NaN,INF) is itself */ in cbrtf()
37 if (hx < 0x00800000) { /* zero or subnormal? */ in cbrtf()
38 if (hx == 0) in cbrtf()
41 hx = u.i & 0x7fffffff; in cbrtf()
42 hx = hx/3 + B2; in cbrtf()
44 hx = hx/3 + B1; in cbrtf()
46 u.i |= hx; in cbrtf()
[all...]
H A Dcbrt.c37 uint32_t hx = u.i>>32 & 0x7fffffff; in cbrt() local
39 if (hx >= 0x7ff00000) /* cbrt(NaN,INF) is itself */ in cbrt()
57 if (hx < 0x00100000) { /* zero or subnormal? */ in cbrt()
59 hx = u.i>>32 & 0x7fffffff; in cbrt()
60 if (hx == 0) in cbrt()
62 hx = hx/3 + B2; in cbrt()
64 hx = hx/3 + B1; in cbrt()
66 u.i |= (uint64_t)hx << 3 in cbrt()
[all...]
H A Dlog10.c40 uint32_t hx; in log10() local
43 hx = u.i>>32; in log10()
45 if (hx < 0x00100000 || hx>>31) { in log10()
48 if (hx>>31) in log10()
54 hx = u.i>>32; in log10()
55 } else if (hx >= 0x7ff00000) { in log10()
57 } else if (hx == 0x3ff00000 && u.i<<32 == 0) in log10()
61 hx += 0x3ff00000 - 0x3fe6a09e; in log10()
62 k += (int)(hx>>2 in log10()
[all...]
H A Dlog1p.c73 uint32_t hx,hu; in log1p() local
76 hx = u.i>>32; in log1p()
78 if (hx < 0x3fda827a || hx>>31) { /* 1+x < sqrt(2)+ */ in log1p()
79 if (hx >= 0xbff00000) { /* x <= -1.0 */ in log1p()
84 if (hx<<1 < 0x3ca00000<<1) { /* |x| < 2**-53 */ in log1p()
86 if ((hx&0x7ff00000) == 0) in log1p()
90 if (hx <= 0xbfd2bec4) { /* sqrt(2)/2- <= 1+x < sqrt(2)+ */ in log1p()
95 } else if (hx >= 0x7ff00000) in log1p()
H A Dacosf.c37 uint32_t hx,ix; in acosf() local
39 GET_FLOAT_WORD(hx, x); in acosf()
40 ix = hx & 0x7fffffff; in acosf()
44 if (hx >> 31) in acosf()
57 if (hx >> 31) { in acosf()
66 GET_FLOAT_WORD(hx,s); in acosf()
67 SET_FLOAT_WORD(df,hx&0xfffff000); in acosf()
/third_party/musl/src/complex/
H A Dcexp.c37 uint32_t hx, hy, lx, ly; in cexp() local
48 EXTRACT_WORDS(hx, lx, x); in cexp()
50 if (((hx & 0x7fffffff) | lx) == 0) in cexp()
54 if (lx != 0 || (hx & 0x7fffffff) != 0x7ff00000) { in cexp()
57 } else if (hx & 0x80000000) { in cexp()
66 if (hx >= exp_ovfl && hx <= cexp_ovfl) { in cexp()
H A Dcexpf.c37 uint32_t hx, hy; in cexpf() local
48 GET_FLOAT_WORD(hx, x); in cexpf()
50 if ((hx & 0x7fffffff) == 0) in cexpf()
54 if ((hx & 0x7fffffff) != 0x7f800000) { in cexpf()
57 } else if (hx & 0x80000000) { in cexpf()
66 if (hx >= exp_ovfl && hx <= cexp_ovfl) { in cexpf()
/third_party/FreeBSD/lib/msun/src/
H A De_acoshl.c67 int16_t hx; in acoshl() local
70 GET_LDBL_EXPSIGN(hx, x); in acoshl()
71 if (hx < 0x3fff) { /* x < 1, or misnormal */ in acoshl()
73 } else if (hx >= BIAS + EXP_LARGE) { /* x >= LARGE */ in acoshl()
74 if (hx >= 0x7fff) { /* x is inf, NaN or misnormal */ in acoshl()
78 } else if (hx == 0x3fff && x == 1) { in acoshl()
80 } else if (hx >= 0x4000) { /* LARGE > x >= 2, or misnormal */ in acoshl()

Completed in 8 milliseconds

1234