Home
last modified time | relevance | path

Searched refs:ux (Results 1 - 25 of 68) sorted by relevance

123

/third_party/musl/porting/liteos_a/kernel/src/math/
H A Dnextafterl.c11 union ldshape ux, uy; in nextafterl() local
17 ux.f = x; in nextafterl()
20 ux.i.m = 1; in nextafterl()
21 ux.i.se = uy.i.se & 0x8000; in nextafterl()
22 } else if ((x < y) == !(ux.i.se & 0x8000)) { in nextafterl()
23 ux.i.m++; in nextafterl()
24 if (ux.i.m << 1 == 0) { in nextafterl()
25 ux.i.m = 1ULL << 63; in nextafterl()
26 ux.i.se++; in nextafterl()
29 if (ux in nextafterl()
47 union ldshape ux, uy; nextafterl() local
[all...]
H A Dfmodl.c11 union ldshape ux = {x}, uy = {y}; in fmodl() local
12 int ex = ux.i.se & 0x7fff; in fmodl()
14 int sx = ux.i.se & 0x8000; in fmodl()
18 ux.i.se = ex; in fmodl()
20 if (ux.f <= uy.f) { in fmodl()
21 if (ux.f == uy.f) in fmodl()
28 ux.f *= 0x1p120f; in fmodl()
29 ex = ux.i.se - 120; in fmodl()
39 mx = ux.i.m; in fmodl()
60 ux in fmodl()
[all...]
H A Dnexttowardf.c5 union {float f; uint32_t i;} ux = {x}; in nexttowardf() local
13 ux.i = 1; in nexttowardf()
15 ux.i |= 0x80000000; in nexttowardf()
18 ux.i--; in nexttowardf()
20 ux.i++; in nexttowardf()
23 ux.i++; in nexttowardf()
25 ux.i--; in nexttowardf()
27 e = ux.i & 0x7f800000; in nexttowardf()
28 /* raise overflow if ux.f is infinite and x is finite */ in nexttowardf()
31 /* raise underflow if ux in nexttowardf()
[all...]
H A Dnexttoward.c11 union {double f; uint64_t i;} ux = {x}; in nexttoward() local
19 ux.i = 1; in nexttoward()
21 ux.i |= 1ULL<<63; in nexttoward()
24 ux.i--; in nexttoward()
26 ux.i++; in nexttoward()
29 ux.i++; in nexttoward()
31 ux.i--; in nexttoward()
33 e = ux.i>>52 & 0x7ff; in nexttoward()
34 /* raise overflow if ux.f is infinite and x is finite */ in nexttoward()
37 /* raise underflow if ux in nexttoward()
[all...]
H A Dnextafter.c5 union {double f; uint64_t i;} ux={x}, uy={y}; in nextafter() local
11 if (ux.i == uy.i) in nextafter()
13 ax = ux.i & -1ULL/2; in nextafter()
18 ux.i = (uy.i & 1ULL<<63) | 1; in nextafter()
19 } else if (ax > ay || ((ux.i ^ uy.i) & 1ULL<<63)) in nextafter()
20 ux.i--; in nextafter()
22 ux.i++; in nextafter()
23 e = ux.i >> 52 & 0x7ff; in nextafter()
24 /* raise overflow if ux.f is infinite and x is finite */ in nextafter()
27 /* raise underflow if ux in nextafter()
[all...]
H A Dnextafterf.c5 union {float f; uint32_t i;} ux={x}, uy={y}; in nextafterf() local
10 if (ux.i == uy.i) in nextafterf()
12 ax = ux.i & 0x7fffffff; in nextafterf()
17 ux.i = (uy.i & 0x80000000) | 1; in nextafterf()
18 } else if (ax > ay || ((ux.i ^ uy.i) & 0x80000000)) in nextafterf()
19 ux.i--; in nextafterf()
21 ux.i++; in nextafterf()
22 e = ux.i & 0x7f800000; in nextafterf()
23 /* raise overflow if ux.f is infinite and x is finite */ in nextafterf()
26 /* raise underflow if ux in nextafterf()
[all...]
H A Dremquol.c11 union ldshape ux = {x}, uy = {y}; in remquol() local
12 int ex = ux.i.se & 0x7fff; in remquol()
14 int sx = ux.i.se >> 15; in remquol()
26 ux.i.se = ex; in remquol()
27 ux.f *= 0x1p120f; in remquol()
28 ex = ux.i.se - 120; in remquol()
41 mx = ux.i.m; in remquol()
67 ux.i.m = mx; in remquol()
70 xhi = (ux.i2.hi & -1ULL>>16) | 1ULL<<48; in remquol()
72 xlo = ux in remquol()
[all...]
H A Dhypotf.c6 union {float f; uint32_t i;} ux = {x}, uy = {y}, ut; in hypotf() local
9 ux.i &= -1U>>1; in hypotf()
11 if (ux.i < uy.i) { in hypotf()
12 ut = ux; in hypotf()
13 ux = uy; in hypotf()
17 x = ux.f; in hypotf()
21 if (ux.i >= 0xff<<23 || uy.i == 0 || ux.i - uy.i >= 25<<23) in hypotf()
25 if (ux.i >= (0x7f+60)<<23) { in hypotf()
H A Dremquo.c6 union {double f; uint64_t i;} ux = {x}, uy = {y}; in remquo() local
7 int ex = ux.i>>52 & 0x7ff; in remquo()
9 int sx = ux.i>>63; in remquo()
13 uint64_t uxi = ux.i; in remquo()
18 if (ux.i<<1 == 0) in remquo()
71 ux.i = uxi; in remquo()
72 x = ux.f; in remquo()
H A Dremquof.c6 union {float f; uint32_t i;} ux = {x}, uy = {y}; in remquof() local
7 int ex = ux.i>>23 & 0xff; in remquof()
9 int sx = ux.i>>31; in remquof()
13 uint32_t uxi = ux.i; in remquof()
18 if (ux.i<<1 == 0) in remquof()
71 ux.i = uxi; in remquof()
72 x = ux.f; in remquof()
H A Dhypot.c24 union {double f; uint64_t i;} ux = {x}, uy = {y}, ut; in hypot() local
29 ux.i &= -1ULL>>1; in hypot()
31 if (ux.i < uy.i) { in hypot()
32 ut = ux; in hypot()
33 ux = uy; in hypot()
38 ex = ux.i>>52; in hypot()
40 x = ux.f; in hypot()
/third_party/musl/src/math/
H A Dnextafterl.c11 union ldshape ux, uy; in nextafterl() local
17 ux.f = x; in nextafterl()
20 ux.i.m = 1; in nextafterl()
21 ux.i.se = uy.i.se & 0x8000; in nextafterl()
22 } else if ((x < y) == !(ux.i.se & 0x8000)) { in nextafterl()
23 ux.i.m++; in nextafterl()
24 if (ux.i.m << 1 == 0) { in nextafterl()
25 ux.i.m = 1ULL << 63; in nextafterl()
26 ux.i.se++; in nextafterl()
29 if (ux in nextafterl()
47 union ldshape ux, uy; nextafterl() local
[all...]
H A Dfmodl.c11 union ldshape ux = {x}, uy = {y}; in fmodl() local
12 int ex = ux.i.se & 0x7fff; in fmodl()
14 int sx = ux.i.se & 0x8000; in fmodl()
18 ux.i.se = ex; in fmodl()
20 if (ux.f <= uy.f) { in fmodl()
21 if (ux.f == uy.f) in fmodl()
28 ux.f *= 0x1p120f; in fmodl()
29 ex = ux.i.se - 120; in fmodl()
39 mx = ux.i.m; in fmodl()
60 ux in fmodl()
[all...]
H A Dnexttowardf.c5 union {float f; uint32_t i;} ux = {x}; in nexttowardf() local
13 ux.i = 1; in nexttowardf()
15 ux.i |= 0x80000000; in nexttowardf()
18 ux.i--; in nexttowardf()
20 ux.i++; in nexttowardf()
23 ux.i++; in nexttowardf()
25 ux.i--; in nexttowardf()
27 e = ux.i & 0x7f800000; in nexttowardf()
28 /* raise overflow if ux.f is infinite and x is finite */ in nexttowardf()
31 /* raise underflow if ux in nexttowardf()
[all...]
H A Dnexttoward.c11 union {double f; uint64_t i;} ux = {x}; in nexttoward() local
19 ux.i = 1; in nexttoward()
21 ux.i |= 1ULL<<63; in nexttoward()
24 ux.i--; in nexttoward()
26 ux.i++; in nexttoward()
29 ux.i++; in nexttoward()
31 ux.i--; in nexttoward()
33 e = ux.i>>52 & 0x7ff; in nexttoward()
34 /* raise overflow if ux.f is infinite and x is finite */ in nexttoward()
37 /* raise underflow if ux in nexttoward()
[all...]
H A Dnextafter.c5 union {double f; uint64_t i;} ux={x}, uy={y}; in nextafter() local
11 if (ux.i == uy.i) in nextafter()
13 ax = ux.i & -1ULL/2; in nextafter()
18 ux.i = (uy.i & 1ULL<<63) | 1; in nextafter()
19 } else if (ax > ay || ((ux.i ^ uy.i) & 1ULL<<63)) in nextafter()
20 ux.i--; in nextafter()
22 ux.i++; in nextafter()
23 e = ux.i >> 52 & 0x7ff; in nextafter()
24 /* raise overflow if ux.f is infinite and x is finite */ in nextafter()
27 /* raise underflow if ux in nextafter()
[all...]
H A Dnextafterf.c5 union {float f; uint32_t i;} ux={x}, uy={y}; in nextafterf() local
10 if (ux.i == uy.i) in nextafterf()
12 ax = ux.i & 0x7fffffff; in nextafterf()
17 ux.i = (uy.i & 0x80000000) | 1; in nextafterf()
18 } else if (ax > ay || ((ux.i ^ uy.i) & 0x80000000)) in nextafterf()
19 ux.i--; in nextafterf()
21 ux.i++; in nextafterf()
22 e = ux.i & 0x7f800000; in nextafterf()
23 /* raise overflow if ux.f is infinite and x is finite */ in nextafterf()
26 /* raise underflow if ux in nextafterf()
[all...]
H A Dremquol.c11 union ldshape ux = {x}, uy = {y}; in remquol() local
12 int ex = ux.i.se & 0x7fff; in remquol()
14 int sx = ux.i.se >> 15; in remquol()
26 ux.i.se = ex; in remquol()
27 ux.f *= 0x1p120f; in remquol()
28 ex = ux.i.se - 120; in remquol()
41 mx = ux.i.m; in remquol()
67 ux.i.m = mx; in remquol()
70 xhi = (ux.i2.hi & -1ULL>>16) | 1ULL<<48; in remquol()
72 xlo = ux in remquol()
[all...]
H A Dhypotf.c6 union {float f; uint32_t i;} ux = {x}, uy = {y}, ut; in hypotf() local
9 ux.i &= -1U>>1; in hypotf()
11 if (ux.i < uy.i) { in hypotf()
12 ut = ux; in hypotf()
13 ux = uy; in hypotf()
17 x = ux.f; in hypotf()
21 if (ux.i >= 0xff<<23 || uy.i == 0 || ux.i - uy.i >= 25<<23) in hypotf()
25 if (ux.i >= (0x7f+60)<<23) { in hypotf()
H A Dremquof.c6 union {float f; uint32_t i;} ux = {x}, uy = {y}; in remquof() local
7 int ex = ux.i>>23 & 0xff; in remquof()
9 int sx = ux.i>>31; in remquof()
13 uint32_t uxi = ux.i; in remquof()
18 if (ux.i<<1 == 0) in remquof()
71 ux.i = uxi; in remquof()
72 x = ux.f; in remquof()
H A Dhypot.c24 union {double f; uint64_t i;} ux = {x}, uy = {y}, ut; in hypot() local
29 ux.i &= -1ULL>>1; in hypot()
31 if (ux.i < uy.i) { in hypot()
32 ut = ux; in hypot()
33 ux = uy; in hypot()
38 ex = ux.i>>52; in hypot()
40 x = ux.f; in hypot()
H A Dhypotl.c27 union ldshape ux = {x}, uy = {y}; in hypotl() local
31 ux.i.se &= 0x7fff; in hypotl()
33 if (ux.i.se < uy.i.se) { in hypotl()
35 ey = ux.i.se; in hypotl()
37 y = ux.f; in hypotl()
39 ex = ux.i.se; in hypotl()
41 x = ux.f; in hypotl()
/third_party/musl/porting/liteos_m/kernel/src/math/
H A Dfmodl.c11 union ldshape ux = {x}, uy = {y}; in fmodl() local
12 int ex = ux.i.se & 0x7fff; in fmodl()
14 int sx = ux.i.se & 0x8000; in fmodl()
18 ux.i.se = ex; in fmodl()
20 if (ux.f <= uy.f) { in fmodl()
21 if (ux.f == uy.f) in fmodl()
28 ux.f *= 0x1p120f; in fmodl()
29 ex = ux.i.se - 120; in fmodl()
39 mx = ux.i.m; in fmodl()
60 ux in fmodl()
[all...]
/third_party/musl/porting/uniproton/kernel/src/math/
H A Dfmodl.c11 union ldshape ux = {x}, uy = {y}; in fmodl() local
12 int ex = ux.i.se & 0x7fff; in fmodl()
14 int sx = ux.i.se & 0x8000; in fmodl()
18 ux.i.se = ex; in fmodl()
20 if (ux.f <= uy.f) { in fmodl()
21 if (ux.f == uy.f) in fmodl()
28 ux.f *= 0x1p120f; in fmodl()
29 ex = ux.i.se - 120; in fmodl()
39 mx = ux.i.m; in fmodl()
60 ux in fmodl()
[all...]
/third_party/musl/src/math/i386/
H A Dsqrt.c5 union ldshape ux; in sqrt() local
7 __asm__ ("fsqrt; fnstsw %%ax": "=t"(ux.f), "=a"(fpsr) : "0"(x)); in sqrt()
8 if ((ux.i.m & 0x7ff) != 0x400) in sqrt()
9 return (double)ux.f; in sqrt()
13 ux.i.m ^= (fpsr & 0x200) + 0x300; in sqrt()
14 return (double)ux.f; in sqrt()

Completed in 5 milliseconds

123