/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | e_sqrtl.c | 40 union IEEEl2bits u; in inc() local 42 u.e = x; in inc() 43 if (++u.bits.manl == 0) { in inc() 44 if (++u.bits.manh == 0) { in inc() 45 u.bits.exp++; in inc() 46 u.bits.manh |= LDBL_NBIT; in inc() 49 return (u.e); in inc() 56 union IEEEl2bits u; in dec() local 58 u.e = x; in dec() 59 if (u.bits.manl-- == 0) { in dec() [all …]
|
D | s_floorl.c | 34 #define INC_MANH(u, c) do { \ argument 35 uint64_t o = u.bits.manh; \ 36 u.bits.manh += (c); \ 37 if (u.bits.manh < o) \ 38 u.bits.exp++; \ 42 #define INC_MANH(u, c) do { \ argument 43 uint64_t o = u.bits.manh; \ 44 u.bits.manh += (c); \ 45 if (u.bits.manh < o) { \ 46 u.bits.exp++; \ [all …]
|
D | s_ceill.c | 34 #define INC_MANH(u, c) do { \ argument 35 uint64_t o = u.bits.manh; \ 36 u.bits.manh += (c); \ 37 if (u.bits.manh < o) \ 38 u.bits.exp++; \ 42 #define INC_MANH(u, c) do { \ argument 43 uint64_t o = u.bits.manh; \ 44 u.bits.manh += (c); \ 45 if (u.bits.manh < o) { \ 46 u.bits.exp++; \ [all …]
|
D | s_fminl.c | 37 union IEEEl2bits u[2]; in fminl() local 39 u[0].e = x; in fminl() 40 mask_nbit_l(u[0]); in fminl() 41 u[1].e = y; in fminl() 42 mask_nbit_l(u[1]); in fminl() 45 if (u[0].bits.exp == 32767 && (u[0].bits.manh | u[0].bits.manl) != 0) in fminl() 47 if (u[1].bits.exp == 32767 && (u[1].bits.manh | u[1].bits.manl) != 0) in fminl() 51 if (u[0].bits.sign != u[1].bits.sign) in fminl() 52 return (u[1].bits.sign ? y : x); in fminl()
|
D | s_fmaxl.c | 37 union IEEEl2bits u[2]; in fmaxl() local 39 u[0].e = x; in fmaxl() 40 mask_nbit_l(u[0]); in fmaxl() 41 u[1].e = y; in fmaxl() 42 mask_nbit_l(u[1]); in fmaxl() 45 if (u[0].bits.exp == 32767 && (u[0].bits.manh | u[0].bits.manl) != 0) in fmaxl() 47 if (u[1].bits.exp == 32767 && (u[1].bits.manh | u[1].bits.manl) != 0) in fmaxl() 51 if (u[0].bits.sign != u[1].bits.sign) in fmaxl() 52 return (u[0].bits.sign ? y : x); in fmaxl()
|
D | s_fmax.c | 37 union IEEEd2bits u[2]; in fmax() local 39 u[0].d = x; in fmax() 40 u[1].d = y; in fmax() 43 if (u[0].bits.exp == 2047 && (u[0].bits.manh | u[0].bits.manl) != 0) in fmax() 45 if (u[1].bits.exp == 2047 && (u[1].bits.manh | u[1].bits.manl) != 0) in fmax() 49 if (u[0].bits.sign != u[1].bits.sign) in fmax() 50 return (u[u[0].bits.sign].d); in fmax()
|
D | s_fmin.c | 37 union IEEEd2bits u[2]; in fmin() local 39 u[0].d = x; in fmin() 40 u[1].d = y; in fmin() 43 if (u[0].bits.exp == 2047 && (u[0].bits.manh | u[0].bits.manl) != 0) in fmin() 45 if (u[1].bits.exp == 2047 && (u[1].bits.manh | u[1].bits.manl) != 0) in fmin() 49 if (u[0].bits.sign != u[1].bits.sign) in fmin() 50 return (u[u[1].bits.sign].d); in fmin()
|
D | s_frexpl.c | 41 union IEEEl2bits u; in frexpl() local 43 u.e = x; in frexpl() 44 switch (u.bits.exp) { in frexpl() 46 if ((u.bits.manl | u.bits.manh) == 0) { in frexpl() 49 u.e *= 0x1.0p514; in frexpl() 50 *ex = u.bits.exp - 0x4200; in frexpl() 51 u.bits.exp = 0x3ffe; in frexpl() 57 *ex = u.bits.exp - 0x3ffe; in frexpl() 58 u.bits.exp = 0x3ffe; in frexpl() 61 return (u.e); in frexpl()
|
D | s_fminf.c | 37 union IEEEf2bits u[2]; in fminf() local 39 u[0].f = x; in fminf() 40 u[1].f = y; in fminf() 43 if (u[0].bits.exp == 255 && u[0].bits.man != 0) in fminf() 45 if (u[1].bits.exp == 255 && u[1].bits.man != 0) in fminf() 49 if (u[0].bits.sign != u[1].bits.sign) in fminf() 50 return (u[u[1].bits.sign].f); in fminf()
|
D | s_fmaxf.c | 37 union IEEEf2bits u[2]; in fmaxf() local 39 u[0].f = x; in fmaxf() 40 u[1].f = y; in fmaxf() 43 if (u[0].bits.exp == 255 && u[0].bits.man != 0) in fmaxf() 45 if (u[1].bits.exp == 255 && u[1].bits.man != 0) in fmaxf() 49 if (u[0].bits.sign != u[1].bits.sign) in fmaxf() 50 return (u[u[0].bits.sign].f); in fmaxf()
|
D | s_ilogbl.c | 25 union IEEEl2bits u; in ilogbl() local 29 u.e = x; in ilogbl() 30 if (u.bits.exp == 0) { in ilogbl() 31 if ((u.bits.manl | u.bits.manh) == 0) in ilogbl() 34 if (u.bits.manh == 0) { in ilogbl() 36 for (b = LDBL_MANH_SIZE; !(u.bits.manl & m); m >>= 1) in ilogbl() 40 for (b = 0; !(u.bits.manh & m); m >>= 1) in ilogbl() 47 } else if (u.bits.exp < (LDBL_MAX_EXP << 1) - 1) in ilogbl() 48 return (u.bits.exp - LDBL_MAX_EXP + 1); in ilogbl() 49 else if (u.bits.manl != 0 || u.bits.manh != 0) in ilogbl()
|
D | s_logbl.c | 26 union IEEEl2bits u; in logbl() local 30 u.e = x; in logbl() 31 if (u.bits.exp == 0) { in logbl() 32 if ((u.bits.manl | u.bits.manh) == 0) { /* x == 0 */ in logbl() 33 u.bits.sign = 1; in logbl() 34 return (1.0L / u.e); in logbl() 37 if (u.bits.manh == 0) { in logbl() 39 for (b = LDBL_MANH_SIZE; !(u.bits.manl & m); m >>= 1) in logbl() 43 for (b = 0; !(u.bits.manh & m); m >>= 1) in logbl() 51 if (u.bits.exp < (LDBL_MAX_EXP << 1) - 1) /* normal */ in logbl() [all …]
|
D | s_truncl.c | 44 union IEEEl2bits u = { .e = x }; in truncl() local 45 int e = u.bits.exp - LDBL_MAX_EXP + 1; in truncl() 50 u.e = zero[u.bits.sign]; in truncl() 53 if (((u.bits.manh & m) | u.bits.manl) == 0) in truncl() 56 u.bits.manh &= ~m; in truncl() 57 u.bits.manl = 0; in truncl() 62 if ((u.bits.manl & m) == 0) in truncl() 65 u.bits.manl &= ~m; in truncl() 67 return (u.e); in truncl()
|
D | s_scalbnl.c | 47 union IEEEl2bits u; in scalbnl() local 49 u.e = x; in scalbnl() 50 k = u.bits.exp; /* extract exponent */ in scalbnl() 52 if ((u.bits.manh|u.bits.manl)==0) return x; /* +-0 */ in scalbnl() 53 u.e *= 0x1p+128; in scalbnl() 54 k = u.bits.exp - 128; in scalbnl() 61 {u.bits.exp = k; return u.e;} in scalbnl() 67 u.bits.exp = k; in scalbnl() 68 return u.e*0x1p-128; in scalbnl()
|
D | s_nan.c | 84 } u; local 86 _scan_nan(u.bits, 2, s); 88 u.bits[1] |= 0x7ff80000; 90 u.bits[0] |= 0x7ff80000; 92 return (u.d); 101 } u; local 103 _scan_nan(u.bits, 1, s); 104 u.bits[0] |= 0x7fc00000; 105 return (u.f);
|
D | s_fabsl.c | 38 union IEEEl2bits u; in fabsl() local 40 u.e = x; in fabsl() 41 u.bits.sign = 0; in fabsl() 42 return (u.e); in fabsl()
|
D | s_log1pf.c | 42 float hfsq,f,c,s,z,R,u; in log1pf() local 67 STRICT_ASSIGN(float,u,(float)1.0+x); in log1pf() 68 GET_FLOAT_WORD(hu,u); in log1pf() 71 c = (k>0)? (float)1.0-(u-x):x-(u-(float)1.0); in log1pf() 72 c /= u; in log1pf() 74 u = x; in log1pf() 75 GET_FLOAT_WORD(hu,u); in log1pf() 88 SET_FLOAT_WORD(u,hu|0x3f800000);/* normalize u */ in log1pf() 91 SET_FLOAT_WORD(u,hu|0x3f000000); /* normalize u/2 */ in log1pf() 94 f = u-(float)1.0; in log1pf()
|
D | e_asinl.c | 36 union IEEEl2bits u; in asinl() local 39 u.e = x; in asinl() 40 expsign = u.xbits.expsign; in asinl() 43 if(expt==BIAS && ((u.bits.manh&~LDBL_NBIT)|u.bits.manl)==0) in asinl() 63 if(u.bits.manh>=THRESH) { /* if |x| is close to 1 */ in asinl() 67 u.e = s; in asinl() 68 u.bits.manl = 0; in asinl() 69 w = u.e; in asinl()
|
/bionic/libm/ |
D | signbit.c | 35 union IEEEd2bits u; in __signbit() local 37 u.d = d; in __signbit() 38 return (u.bits.sign); in __signbit() 43 union IEEEf2bits u; in __signbitf() local 45 u.f = f; in __signbitf() 46 return (u.bits.sign); in __signbitf() 52 union IEEEl2bits u; in __signbitl() local 54 u.e = e; in __signbitl() 55 return (u.bits.sign); in __signbitl()
|
D | fpmath.h | 82 #define mask_nbit_l(u) ((void)0) argument 87 #define LDBL_TO_ARRAY32(u, a) do { \ argument 88 (a)[0] = (uint32_t)(u).bits.manl; \ 89 (a)[1] = (uint32_t)((u).bits.manl >> 32); \ 90 (a)[2] = (uint32_t)(u).bits.manh; \ 91 (a)[3] = (uint32_t)((u).bits.manh >> 32); \
|
/bionic/libc/bionic/ |
D | fpclassify.cpp | 49 double_u u; in __fpclassifyd() local 50 u.d = d; in __fpclassifyd() 51 if (u.bits.dbl_exp == 0) { in __fpclassifyd() 52 return ((u.bits.dbl_fracl | u.bits.dbl_frach) == 0) ? FP_ZERO : FP_SUBNORMAL; in __fpclassifyd() 54 if (u.bits.dbl_exp == DBL_EXP_INFNAN) { in __fpclassifyd() 55 return ((u.bits.dbl_fracl | u.bits.dbl_frach) == 0) ? FP_INFINITE : FP_NAN; in __fpclassifyd() 62 float_u u; in __fpclassifyf() local 63 u.f = f; in __fpclassifyf() 64 if (u.bits.sng_exp == 0) { in __fpclassifyf() 65 return (u.bits.sng_frac == 0) ? FP_ZERO : FP_SUBNORMAL; in __fpclassifyf() [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/ |
D | strtof.c | 45 union { ULong L[1]; float f; } u; local 56 u.L[0] = 0; 61 u.L[0] = (bits[0] & 0x7fffff) | ((exp + 0x7f + 23) << 23); 65 u.L[0] = bits[0]; 72 u.L[0] = 0x7f800000; 76 u.L[0] = f_QNAN; 79 u.L[0] |= 0x80000000L; 80 return u.f;
|
/bionic/libm/upstream-freebsd/lib/msun/ld128/ |
D | s_nanl.c | 40 } u; in nanl() local 42 _scan_nan(u.bits, 4, s); in nanl() 43 u.ieee.bits.exp = 0x7fff; in nanl() 44 u.ieee.bits.manh |= 1ULL << 47; /* make it a quiet NaN */ in nanl() 45 return (u.ieee.e); in nanl()
|
/bionic/libc/arch-arm/generic/bionic/ |
D | strlen.c | 41 } u; in strlen() local 50 u.b = s; in strlen() 51 while (u.i & 0x3) { in strlen() 52 if (__builtin_expect(*u.b++ == 0, 0)) { in strlen() 129 : [l]"=&r"(l), [v]"=&r"(v), [t]"=&r"(t), [s]"=&r"(u.b) in strlen() 130 : "%[l]"(l), "%[s]"(u.b), [mask]"r"(0x80808080UL) in strlen()
|
/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/ |
D | b_log.c | 367 double F, f, g, q, u, u2, v, zero = 0.0, one = 1.0; 394 u = 2*f*g; 395 v = u*u; 396 q = u*v*(A1 + v*(A2 + v*(A3 + v*A4))); 403 u1 = u + 513, u1 -= 513; 409 u1 = u, TRUNC(u1); 436 double F, f, g, q, u, v, u2; local 454 u = 2*f*g; 455 v = u*u; 456 q = u*v*(A1 + v*(A2 + v*(A3 + v*A4))); [all …]
|