/third_party/musl/porting/liteos_a/kernel/src/math/ |
D | hypotf.c | 6 union {float f; uint32_t i;} ux = {x}, uy = {y}, ut; in hypotf() local 10 uy.i &= -1U>>1; in hypotf() 11 if (ux.i < uy.i) { in hypotf() 13 ux = uy; in hypotf() 14 uy = ut; in hypotf() 18 y = uy.f; in hypotf() 19 if (uy.i == 0xff<<23) in hypotf() 21 if (ux.i >= 0xff<<23 || uy.i == 0 || ux.i - uy.i >= 25<<23) in hypotf() 29 } else if (uy.i < (0x7f-60)<<23) { in hypotf()
|
D | fmod.c | 6 union {double f; uint64_t i;} ux = {x}, uy = {y}; in fmod() local 8 int ey = uy.i>>52 & 0x7ff; in fmod() 16 if (uy.i<<1 == 0 || isnan(y) || ex == 0x7ff) in fmod() 18 if (uxi<<1 <= uy.i<<1) { in fmod() 19 if (uxi<<1 == uy.i<<1) in fmod() 33 for (i = uy.i<<12; i>>63 == 0; ey--, i <<= 1); in fmod() 34 uy.i <<= -ey + 1; in fmod() 36 uy.i &= -1ULL >> 12; in fmod() 37 uy.i |= 1ULL << 52; in fmod() 42 i = uxi - uy.i; in fmod() [all …]
|
D | fmodf.c | 6 union {float f; uint32_t i;} ux = {x}, uy = {y}; in fmodf() local 8 int ey = uy.i>>23 & 0xff; in fmodf() 13 if (uy.i<<1 == 0 || isnan(y) || ex == 0xff) in fmodf() 15 if (uxi<<1 <= uy.i<<1) { in fmodf() 16 if (uxi<<1 == uy.i<<1) in fmodf() 30 for (i = uy.i<<9; i>>31 == 0; ey--, i <<= 1); in fmodf() 31 uy.i <<= -ey + 1; in fmodf() 33 uy.i &= -1U >> 9; in fmodf() 34 uy.i |= 1U << 23; in fmodf() 39 i = uxi - uy.i; in fmodf() [all …]
|
D | remquo.c | 6 union {double f; uint64_t i;} ux = {x}, uy = {y}; in remquo() local 8 int ey = uy.i>>52 & 0x7ff; in remquo() 10 int sy = uy.i>>63; in remquo() 16 if (uy.i<<1 == 0 || isnan(y) || ex == 0x7ff) in remquo() 30 for (i = uy.i<<12; i>>63 == 0; ey--, i <<= 1); in remquo() 31 uy.i <<= -ey + 1; in remquo() 33 uy.i &= -1ULL >> 12; in remquo() 34 uy.i |= 1ULL << 52; in remquo() 46 i = uxi - uy.i; in remquo() 54 i = uxi - uy.i; in remquo()
|
D | remquof.c | 6 union {float f; uint32_t i;} ux = {x}, uy = {y}; in remquof() local 8 int ey = uy.i>>23 & 0xff; in remquof() 10 int sy = uy.i>>31; in remquof() 16 if (uy.i<<1 == 0 || isnan(y) || ex == 0xff) in remquof() 30 for (i = uy.i<<9; i>>31 == 0; ey--, i <<= 1); in remquof() 31 uy.i <<= -ey + 1; in remquof() 33 uy.i &= -1U >> 9; in remquof() 34 uy.i |= 1U << 23; in remquof() 46 i = uxi - uy.i; in remquof() 54 i = uxi - uy.i; in remquof()
|
D | fmodl.c | 11 union ldshape ux = {x}, uy = {y}; in fmodl() local 13 int ey = uy.i.se & 0x7fff; in fmodl() 19 uy.i.se = ey; in fmodl() 20 if (ux.f <= uy.f) { in fmodl() 21 if (ux.f == uy.f) in fmodl() 32 uy.f *= 0x1p120f; in fmodl() 33 ey = uy.i.se - 120; in fmodl() 40 my = uy.i.m; in fmodl() 64 yhi = (uy.i2.hi & -1ULL>>16) | 1ULL<<48; in fmodl() 66 ylo = uy.i2.lo; in fmodl()
|
D | hypot.c | 24 union {double f; uint64_t i;} ux = {x}, uy = {y}, ut; in hypot() local 30 uy.i &= -1ULL>>1; in hypot() 31 if (ux.i < uy.i) { in hypot() 33 ux = uy; in hypot() 34 uy = ut; in hypot() 39 ey = uy.i>>52; in hypot() 41 y = uy.f; in hypot() 45 if (ex == 0x7ff || uy.i == 0) in hypot()
|
D | hypotl.c | 27 union ldshape ux = {x}, uy = {y}; in hypotl() local 32 uy.i.se &= 0x7fff; in hypotl() 33 if (ux.i.se < uy.i.se) { in hypotl() 34 ex = uy.i.se; in hypotl() 36 x = uy.f; in hypotl() 40 ey = uy.i.se; in hypotl() 42 y = uy.f; in hypotl()
|
D | remquol.c | 11 union ldshape ux = {x}, uy = {y}; in remquol() local 13 int ey = uy.i.se & 0x7fff; in remquol() 15 int sy = uy.i.se >> 15; in remquol() 31 uy.i.se = ey; in remquol() 32 uy.f *= 0x1p120f; in remquol() 33 ey = uy.i.se - 120; in remquol() 42 my = uy.i.m; in remquol() 71 yhi = (uy.i2.hi & -1ULL>>16) | 1ULL<<48; in remquol()
|
D | nextafter.c | 5 union {double f; uint64_t i;} ux={x}, uy={y}; in nextafter() local 11 if (ux.i == uy.i) in nextafter() 14 ay = uy.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()
|
D | nextafterf.c | 5 union {float f; uint32_t i;} ux={x}, uy={y}; in nextafterf() local 10 if (ux.i == uy.i) in nextafterf() 13 ay = uy.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()
|
/third_party/musl/src/math/ |
D | hypotf.c | 6 union {float f; uint32_t i;} ux = {x}, uy = {y}, ut; in hypotf() local 10 uy.i &= -1U>>1; in hypotf() 11 if (ux.i < uy.i) { in hypotf() 13 ux = uy; in hypotf() 14 uy = ut; in hypotf() 18 y = uy.f; in hypotf() 19 if (uy.i == 0xff<<23) in hypotf() 21 if (ux.i >= 0xff<<23 || uy.i == 0 || ux.i - uy.i >= 25<<23) in hypotf() 29 } else if (uy.i < (0x7f-60)<<23) { in hypotf()
|
D | fmod.c | 6 union {double f; uint64_t i;} ux = {x}, uy = {y}; in fmod() local 8 int ey = uy.i>>52 & 0x7ff; in fmod() 16 if (uy.i<<1 == 0 || isnan(y) || ex == 0x7ff) in fmod() 18 if (uxi<<1 <= uy.i<<1) { in fmod() 19 if (uxi<<1 == uy.i<<1) in fmod() 33 for (i = uy.i<<12; i>>63 == 0; ey--, i <<= 1); in fmod() 34 uy.i <<= -ey + 1; in fmod() 36 uy.i &= -1ULL >> 12; in fmod() 37 uy.i |= 1ULL << 52; in fmod() 42 i = uxi - uy.i; in fmod() [all …]
|
D | fmodf.c | 6 union {float f; uint32_t i;} ux = {x}, uy = {y}; in fmodf() local 8 int ey = uy.i>>23 & 0xff; in fmodf() 13 if (uy.i<<1 == 0 || isnan(y) || ex == 0xff) in fmodf() 15 if (uxi<<1 <= uy.i<<1) { in fmodf() 16 if (uxi<<1 == uy.i<<1) in fmodf() 30 for (i = uy.i<<9; i>>31 == 0; ey--, i <<= 1); in fmodf() 31 uy.i <<= -ey + 1; in fmodf() 33 uy.i &= -1U >> 9; in fmodf() 34 uy.i |= 1U << 23; in fmodf() 39 i = uxi - uy.i; in fmodf() [all …]
|
D | remquo.c | 6 union {double f; uint64_t i;} ux = {x}, uy = {y}; in remquo() local 8 int ey = uy.i>>52 & 0x7ff; in remquo() 10 int sy = uy.i>>63; in remquo() 16 if (uy.i<<1 == 0 || isnan(y) || ex == 0x7ff) in remquo() 30 for (i = uy.i<<12; i>>63 == 0; ey--, i <<= 1); in remquo() 31 uy.i <<= -ey + 1; in remquo() 33 uy.i &= -1ULL >> 12; in remquo() 34 uy.i |= 1ULL << 52; in remquo() 46 i = uxi - uy.i; in remquo() 54 i = uxi - uy.i; in remquo()
|
D | remquof.c | 6 union {float f; uint32_t i;} ux = {x}, uy = {y}; in remquof() local 8 int ey = uy.i>>23 & 0xff; in remquof() 10 int sy = uy.i>>31; in remquof() 16 if (uy.i<<1 == 0 || isnan(y) || ex == 0xff) in remquof() 30 for (i = uy.i<<9; i>>31 == 0; ey--, i <<= 1); in remquof() 31 uy.i <<= -ey + 1; in remquof() 33 uy.i &= -1U >> 9; in remquof() 34 uy.i |= 1U << 23; in remquof() 46 i = uxi - uy.i; in remquof() 54 i = uxi - uy.i; in remquof()
|
D | fmodl.c | 11 union ldshape ux = {x}, uy = {y}; in fmodl() local 13 int ey = uy.i.se & 0x7fff; in fmodl() 19 uy.i.se = ey; in fmodl() 20 if (ux.f <= uy.f) { in fmodl() 21 if (ux.f == uy.f) in fmodl() 32 uy.f *= 0x1p120f; in fmodl() 33 ey = uy.i.se - 120; in fmodl() 40 my = uy.i.m; in fmodl() 64 yhi = (uy.i2.hi & -1ULL>>16) | 1ULL<<48; in fmodl() 66 ylo = uy.i2.lo; in fmodl()
|
D | hypot.c | 24 union {double f; uint64_t i;} ux = {x}, uy = {y}, ut; in hypot() local 30 uy.i &= -1ULL>>1; in hypot() 31 if (ux.i < uy.i) { in hypot() 33 ux = uy; in hypot() 34 uy = ut; in hypot() 39 ey = uy.i>>52; in hypot() 41 y = uy.f; in hypot() 45 if (ex == 0x7ff || uy.i == 0) in hypot()
|
D | hypotl.c | 27 union ldshape ux = {x}, uy = {y}; in hypotl() local 32 uy.i.se &= 0x7fff; in hypotl() 33 if (ux.i.se < uy.i.se) { in hypotl() 34 ex = uy.i.se; in hypotl() 36 x = uy.f; in hypotl() 40 ey = uy.i.se; in hypotl() 42 y = uy.f; in hypotl()
|
D | remquol.c | 11 union ldshape ux = {x}, uy = {y}; in remquol() local 13 int ey = uy.i.se & 0x7fff; in remquol() 15 int sy = uy.i.se >> 15; in remquol() 31 uy.i.se = ey; in remquol() 32 uy.f *= 0x1p120f; in remquol() 33 ey = uy.i.se - 120; in remquol() 42 my = uy.i.m; in remquol() 71 yhi = (uy.i2.hi & -1ULL>>16) | 1ULL<<48; in remquol()
|
D | nextafterf.c | 5 union {float f; uint32_t i;} ux={x}, uy={y}; in nextafterf() local 10 if (ux.i == uy.i) in nextafterf() 13 ay = uy.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()
|
/third_party/musl/porting/uniproton/kernel/src/math/ |
D | fmod.c | 6 union {double f; uint64_t i;} ux = {x}, uy = {y}; in fmod() local 8 int ey = uy.i>>52 & 0x7ff; in fmod() 16 if (uy.i<<1 == 0 || isnan(y) || ex == 0x7ff) in fmod() 18 if (uxi<<1 <= uy.i<<1) { in fmod() 19 if (uxi<<1 == uy.i<<1) in fmod() 33 for (i = uy.i<<12; i>>63 == 0; ey--, i <<= 1); in fmod() 34 uy.i <<= -ey + 1; in fmod() 36 uy.i &= -1ULL >> 12; in fmod() 37 uy.i |= 1ULL << 52; in fmod() 42 i = uxi - uy.i; in fmod() [all …]
|
D | fmodl.c | 11 union ldshape ux = {x}, uy = {y}; in fmodl() local 13 int ey = uy.i.se & 0x7fff; in fmodl() 19 uy.i.se = ey; in fmodl() 20 if (ux.f <= uy.f) { in fmodl() 21 if (ux.f == uy.f) in fmodl() 32 uy.f *= 0x1p120f; in fmodl() 33 ey = uy.i.se - 120; in fmodl() 40 my = uy.i.m; in fmodl() 64 yhi = (uy.i2.hi & -1ULL>>16) | 1ULL<<48; in fmodl() 66 ylo = uy.i2.lo; in fmodl()
|
/third_party/musl/porting/liteos_m/kernel/src/math/ |
D | fmod.c | 6 union {double f; uint64_t i;} ux = {x}, uy = {y}; in fmod() local 8 int ey = uy.i>>52 & 0x7ff; in fmod() 16 if (uy.i<<1 == 0 || isnan(y) || ex == 0x7ff) in fmod() 18 if (uxi<<1 <= uy.i<<1) { in fmod() 19 if (uxi<<1 == uy.i<<1) in fmod() 33 for (i = uy.i<<12; i>>63 == 0; ey--, i <<= 1); in fmod() 34 uy.i <<= -ey + 1; in fmod() 36 uy.i &= -1ULL >> 12; in fmod() 37 uy.i |= 1ULL << 52; in fmod() 42 i = uxi - uy.i; in fmod() [all …]
|
D | fmodl.c | 11 union ldshape ux = {x}, uy = {y}; in fmodl() local 13 int ey = uy.i.se & 0x7fff; in fmodl() 19 uy.i.se = ey; in fmodl() 20 if (ux.f <= uy.f) { in fmodl() 21 if (ux.f == uy.f) in fmodl() 32 uy.f *= 0x1p120f; in fmodl() 33 ey = uy.i.se - 120; in fmodl() 40 my = uy.i.m; in fmodl() 64 yhi = (uy.i2.hi & -1ULL>>16) | 1ULL<<48; in fmodl() 66 ylo = uy.i2.lo; in fmodl()
|