/haiku/src/system/libroot/posix/musl/math/ |
H A D | nextafterl.c | 11 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.i.m << 1 == 0) { in nextafterl() [all …]
|
H A D | nexttowardf.c | 5 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() 33 FORCE_EVAL(x*x + ux.f*ux.f); in nexttowardf() 34 return ux.f; in nexttowardf()
|
H A 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() 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() 29 FORCE_EVAL(x*x + ux.f*ux.f); in nextafter() 30 return ux.f; in nextafter()
|
H A 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() 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() 28 FORCE_EVAL(x*x + ux.f*ux.f); in nextafterf() 29 return ux.f; in nextafterf()
|
H A D | nexttoward.c | 11 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() 39 FORCE_EVAL(x*x + ux.f*ux.f); in nexttoward() 40 return ux.f; in nexttoward()
|
H A D | fmodl.c | 11 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.i.m = mx; in fmodl() [all …]
|
H A D | hypotf.c | 6 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 D | remquol.c | 11 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.i2.lo; in remquol() [all …]
|
H A D | hypot.c | 24 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 D | hypotl.c | 27 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()
|
H A D | copysignf.c | 6 union {float f; uint32_t i;} ux={x}, uy={y}; in copysignf() local 7 ux.i &= 0x7fffffff; in copysignf() 8 ux.i |= uy.i & 0x80000000; in copysignf() 9 return ux.f; in copysignf()
|
H A D | copysign.c | 4 union {double f; uint64_t i;} ux={x}, uy={y}; in copysign() local 5 ux.i &= -1ULL/2; in copysign() 6 ux.i |= uy.i & 1ULL<<63; in copysign() 7 return ux.f; in copysign()
|
H A D | remquo.c | 6 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 D | remquof.c | 6 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 D | fmodf.c | 6 union {float f; uint32_t i;} ux = {x}, uy = {y}; in fmodf() local 7 int ex = ux.i>>23 & 0xff; in fmodf() 9 uint32_t sx = ux.i & 0x80000000; in fmodf() 11 uint32_t uxi = ux.i; in fmodf() 63 ux.i = uxi; in fmodf() 64 return ux.f; in fmodf()
|
H A D | fmod.c | 6 union {double f; uint64_t i;} ux = {x}, uy = {y}; in fmod() local 7 int ex = ux.i>>52 & 0x7ff; in fmod() 9 int sx = ux.i>>63; in fmod() 14 uint64_t uxi = ux.i; in fmod() 66 ux.i = uxi; in fmod() 67 return ux.f; in fmod()
|
H A D | copysignl.c | 11 union ldshape ux = {x}, uy = {y}; in copysignl() local 12 ux.i.se &= 0x7fff; in copysignl() 13 ux.i.se |= uy.i.se & 0x8000; in copysignl() 14 return ux.f; in copysignl()
|
H A D | atan2l.c | 30 union ldshape ux, uy; in atan2l() local 38 ux.f = x; in atan2l() 40 ex = ux.i.se & 0x7fff; in atan2l() 42 m = 2*(ux.i.se>>15) | uy.i.se>>15; in atan2l()
|
/haiku/src/libs/agg/src/ |
H A D | agg_bezier_arc.cpp | 200 double ux = (x1 - cx1) / rx; in init() local 208 n = sqrt(ux*ux + uy*uy); in init() 209 p = ux; // (1 * ux) + (0 * uy) in init() 218 n = sqrt((ux*ux + uy*uy) * (vx*vx + vy*vy)); in init() 219 p = ux * vx + uy * vy; in init() 220 sign = (ux * vy - uy * vx < 0) ? -1.0 : 1.0; in init()
|
/haiku/headers/libs/agg/ |
H A D | agg_trans_affine.h | 487 trans_affine_reflection_unit(double ux, double uy) : in trans_affine_reflection_unit() argument 488 trans_affine(2.0 * ux * ux - 1.0, in trans_affine_reflection_unit() 489 2.0 * ux * uy, in trans_affine_reflection_unit() 490 2.0 * ux * uy, in trans_affine_reflection_unit()
|
/haiku/src/system/libroot/os/arch/sparc/ |
H A D | softfloat.c | 148 _QP_TTOQ(ux, x, u_long, -1, u_long, u.a[0]) 155 _QP_QTOT(ux, x, u_long, &u.a)
|
/haiku/src/apps/icon-o-matic/import_export/svg/ |
H A D | nanosvg.h | 2054 static float nsvg__vecrat(float ux, float uy, float vx, float vy) in nsvg__vecrat() argument 2056 return (ux*vx + uy*vy) / (nsvg__vmag(ux,uy) * nsvg__vmag(vx,vy)); in nsvg__vecrat() 2059 static float nsvg__vecang(float ux, float uy, float vx, float vy) in nsvg__vecang() argument 2061 float r = nsvg__vecrat(ux,uy, vx,vy); in nsvg__vecang() 2064 return ((ux*vy < uy*vx) ? -1.0f : 1.0f) * acosf(r); in nsvg__vecang() 2073 float ux, uy, vx, vy, a1, da; in nsvg__pathArcTo() local 2137 ux = (x1p - cxp) / rx; in nsvg__pathArcTo() 2141 a1 = nsvg__vecang(1.0f,0.0f, ux,uy); // Initial angle in nsvg__pathArcTo() 2142 da = nsvg__vecang(ux,uy, vx,vy); // Delta angle in nsvg__pathArcTo()
|
/haiku/src/tests/kits/interface/picture/ |
H A D | SVGViewView.cpp | 445 double CalcVectorAngle(double ux, double uy, double vx, double vy) { in CalcVectorAngle() argument 446 double ta = atan2(uy, ux); in CalcVectorAngle()
|