Home
last modified time | relevance | path

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

12345

/third_party/jerryscript/jerry-libm/
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 << 11); i > 0; i <<= 1) in fmod()
[all …]
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 == hy) && (lx > ly))) in nextafter()
98 hx -= 1; in nextafter()
109 hx += 1; in nextafter()
[all …]
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 + 0x95f64) & 0x100000; in log()
[all …]
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 & 0x000fffff) | ((0x3ff - i) << 20); in log10()
107 temp.as_int.hi = hx; in log10()
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 &= 0x000fffff; in log2()
[all …]
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 < 0x3e300000) /* when |x| < 2**-28 */ in exp()
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 < 0x3FF0A2B2) in expm1()
[all …]
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()
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()
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()
/third_party/flutter/skia/third_party/externals/sdl/src/libm/
De_log.c104 int32_t k, hx, i, j; local
107 EXTRACT_WORDS(hx, lx, x);
110 if (hx < 0x00100000) { /* x < 2**-1022 */
111 if (((hx & 0x7fffffff) | lx) == 0)
113 if (hx < 0)
117 GET_HIGH_WORD(hx, x);
119 if (hx >= 0x7ff00000)
121 k += (hx >> 20) - 1023;
122 hx &= 0x000fffff;
123 i = (hx + 0x95f64) & 0x100000;
[all …]
Ds_scalbn.c47 int32_t k, hx, lx; local
48 EXTRACT_WORDS(hx, lx, x);
49 k = (hx & 0x7ff00000) >> 20; /* extract exponent */
51 if ((lx | (hx & 0x7fffffff)) == 0)
54 GET_HIGH_WORD(hx, x);
55 k = ((hx & 0x7ff00000) >> 20) - 54;
65 SET_HIGH_WORD(x, (hx & 0x800fffff) | (k << 20));
75 SET_HIGH_WORD(x, (hx & 0x800fffff) | (k << 20));
/third_party/musl/porting/liteos_a/kernel/src/math/
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>>20) - 0x3ff; in log10()
63 hx = (hx&0x000fffff) + 0x3fe6a09e; in log10()
[all …]
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()
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 << 32; in cbrt()
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()
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/math/
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>>20) - 0x3ff; in log10()
63 hx = (hx&0x000fffff) + 0x3fe6a09e; in log10()
[all …]
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()
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 << 32; in cbrt()
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()
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/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtc/
Dulp.inl74 glm::detail::int32 hx, hy, ix, iy; local
76 GLM_GET_FLOAT_WORD(hx, x);
78 ix = hx&0x7fffffff; // |x|
90 if(hx>=0) { // x > 0
91 if(hx>hy) { // x > y, x -= ulp
92 hx -= 1;
94 hx += 1;
97 if(hy>=0||hx>hy){ // x < y, x -= ulp
98 hx -= 1;
100 hx += 1;
[all …]
/third_party/musl/src/complex/
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()
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()

12345