/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | e_sqrtl.c | 42 union IEEEl2bits u; in inc() local 44 u.e = x; in inc() 45 if (++u.bits.manl == 0) { in inc() 46 if (++u.bits.manh == 0) { in inc() 47 u.bits.exp++; in inc() 48 u.bits.manh |= LDBL_NBIT; in inc() 51 return (u.e); in inc() 58 union IEEEl2bits u; in dec() local 60 u.e = x; in dec() 61 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_fmaxl.c | 39 union IEEEl2bits u[2]; in fmaxl() local 41 u[0].e = x; in fmaxl() 42 mask_nbit_l(u[0]); in fmaxl() 43 u[1].e = y; in fmaxl() 44 mask_nbit_l(u[1]); in fmaxl() 47 if (u[0].bits.exp == 32767 && (u[0].bits.manh | u[0].bits.manl) != 0) in fmaxl() 49 if (u[1].bits.exp == 32767 && (u[1].bits.manh | u[1].bits.manl) != 0) in fmaxl() 53 if (u[0].bits.sign != u[1].bits.sign) in fmaxl() 54 return (u[0].bits.sign ? y : x); in fmaxl()
|
D | s_fminl.c | 39 union IEEEl2bits u[2]; in fminl() local 41 u[0].e = x; in fminl() 42 mask_nbit_l(u[0]); in fminl() 43 u[1].e = y; in fminl() 44 mask_nbit_l(u[1]); in fminl() 47 if (u[0].bits.exp == 32767 && (u[0].bits.manh | u[0].bits.manl) != 0) in fminl() 49 if (u[1].bits.exp == 32767 && (u[1].bits.manh | u[1].bits.manl) != 0) in fminl() 53 if (u[0].bits.sign != u[1].bits.sign) in fminl() 54 return (u[1].bits.sign ? y : x); in fminl()
|
D | s_fmax.c | 40 union IEEEd2bits u[2]; in fmax() local 42 u[0].d = x; in fmax() 43 u[1].d = y; in fmax() 46 if (u[0].bits.exp == 2047 && (u[0].bits.manh | u[0].bits.manl) != 0) in fmax() 48 if (u[1].bits.exp == 2047 && (u[1].bits.manh | u[1].bits.manl) != 0) in fmax() 52 if (u[0].bits.sign != u[1].bits.sign) in fmax() 53 return (u[u[0].bits.sign].d); in fmax()
|
D | s_fmin.c | 40 union IEEEd2bits u[2]; in fmin() local 42 u[0].d = x; in fmin() 43 u[1].d = y; in fmin() 46 if (u[0].bits.exp == 2047 && (u[0].bits.manh | u[0].bits.manl) != 0) in fmin() 48 if (u[1].bits.exp == 2047 && (u[1].bits.manh | u[1].bits.manl) != 0) in fmin() 52 if (u[0].bits.sign != u[1].bits.sign) in fmin() 53 return (u[u[1].bits.sign].d); in fmin()
|
D | s_frexpl.c | 43 union IEEEl2bits u; in frexpl() local 45 u.e = x; in frexpl() 46 switch (u.bits.exp) { in frexpl() 48 if ((u.bits.manl | u.bits.manh) == 0) { in frexpl() 51 u.e *= 0x1.0p514; in frexpl() 52 *ex = u.bits.exp - 0x4200; in frexpl() 53 u.bits.exp = 0x3ffe; in frexpl() 59 *ex = u.bits.exp - 0x3ffe; in frexpl() 60 u.bits.exp = 0x3ffe; in frexpl() 63 return (u.e); in frexpl()
|
D | s_fminf.c | 39 union IEEEf2bits u[2]; in fminf() local 41 u[0].f = x; in fminf() 42 u[1].f = y; in fminf() 45 if (u[0].bits.exp == 255 && u[0].bits.man != 0) in fminf() 47 if (u[1].bits.exp == 255 && u[1].bits.man != 0) in fminf() 51 if (u[0].bits.sign != u[1].bits.sign) in fminf() 52 return (u[u[1].bits.sign].f); in fminf()
|
D | s_fmaxf.c | 39 union IEEEf2bits u[2]; in fmaxf() local 41 u[0].f = x; in fmaxf() 42 u[1].f = y; in fmaxf() 45 if (u[0].bits.exp == 255 && u[0].bits.man != 0) in fmaxf() 47 if (u[1].bits.exp == 255 && u[1].bits.man != 0) in fmaxf() 51 if (u[0].bits.sign != u[1].bits.sign) in fmaxf() 52 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 | 25 union IEEEl2bits u; in logbl() local 29 u.e = x; in logbl() 30 if (u.bits.exp == 0) { in logbl() 31 if ((u.bits.manl | u.bits.manh) == 0) { /* x == 0 */ in logbl() 32 u.bits.sign = 1; in logbl() 33 return (1.0L / u.e); in logbl() 36 if (u.bits.manh == 0) { in logbl() 38 for (b = LDBL_MANH_SIZE; !(u.bits.manl & m); m >>= 1) in logbl() 42 for (b = 0; !(u.bits.manh & m); m >>= 1) in logbl() 50 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 | 45 union IEEEl2bits u; in scalbnl() local 47 u.e = x; in scalbnl() 48 k = u.bits.exp; /* extract exponent */ in scalbnl() 50 if ((u.bits.manh|u.bits.manl)==0) return x; /* +-0 */ in scalbnl() 51 u.e *= 0x1p+128; in scalbnl() 52 k = u.bits.exp - 128; in scalbnl() 59 {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 | 87 } u; in nan() local 89 _scan_nan(u.bits, 2, s); in nan() 91 u.bits[1] |= 0x7ff80000; in nan() 93 u.bits[0] |= 0x7ff80000; in nan() 95 return (u.d); in nan() 104 } u; in nanf() local 106 _scan_nan(u.bits, 1, s); in nanf() 107 u.bits[0] |= 0x7fc00000; in nanf() 108 return (u.f); in nanf()
|
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 | s_log1p.c | 104 double hfsq,f,c,s,z,R,u; in log1p() local 129 STRICT_ASSIGN(double,u,1.0+x); in log1p() 130 GET_HIGH_WORD(hu,u); in log1p() 132 c = (k>0)? 1.0-(u-x):x-(u-1.0);/* correction term */ in log1p() 133 c /= u; in log1p() 135 u = x; in log1p() 136 GET_HIGH_WORD(hu,u); in log1p() 149 SET_HIGH_WORD(u,hu|0x3ff00000); /* normalize u */ in log1p() 152 SET_HIGH_WORD(u,hu|0x3fe00000); /* normalize u/2 */ in log1p() 155 f = u-1.0; in log1p()
|
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()
|
D | s_fabsl.c | 40 union IEEEl2bits u; in fabsl() local 42 u.e = x; in fabsl() 43 u.bits.sign = 0; in fabsl() 44 return (u.e); in fabsl()
|
/bionic/tests/ |
D | netinet_udp_test.cpp | 36 udphdr u; in TEST() local 37 u.uh_sport = 0x1111; in TEST() 38 u.uh_dport = 0x2222; in TEST() 39 u.uh_ulen = 0x3333; in TEST() 40 u.uh_sum = 0x4444; in TEST() 41 ASSERT_EQ(0x1111, u.source); in TEST() 42 ASSERT_EQ(0x2222, u.dest); in TEST() 43 ASSERT_EQ(0x3333, u.len); in TEST() 44 ASSERT_EQ(0x4444, u.check); in TEST()
|
/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/bsdsrc/ |
D | b_log.c | 364 double F, f, g, q, u, u2, v, zero = 0.0, one = 1.0; 391 u = 2*f*g; 392 v = u*u; 393 q = u*v*(A1 + v*(A2 + v*(A3 + v*A4))); 400 u1 = u + 513, u1 -= 513; 406 u1 = u, TRUNC(u1); 433 double F, f, g, q, u, v, u2; local 451 u = 2*f*g; 452 v = u*u; 453 q = u*v*(A1 + v*(A2 + v*(A3 + v*A4))); [all …]
|
/bionic/libc/arch-arm/generic/bionic/ |
D | strlen.c | 41 } u; in strlen_generic() local 50 u.b = s; in strlen_generic() 51 while (u.i & 0x3) { in strlen_generic() 52 if (__builtin_expect(*u.b++ == 0, 0)) { in strlen_generic() 122 : [l]"=&r"(l), [v]"=&r"(v), [t]"=&r"(t), [s]"=&r"(u.b) in strlen_generic() 123 : "%[l]"(l), "%[s]"(u.b), [mask]"r"(0x80808080UL) in strlen_generic()
|
/bionic/libm/upstream-freebsd/lib/msun/ld128/ |
D | s_nanl.c | 42 } u; in nanl() local 44 _scan_nan(u.bits, 4, s); in nanl() 45 u.ieee.bits.exp = 0x7fff; in nanl() 46 u.ieee.bits.manh |= 1ULL << 47; /* make it a quiet NaN */ in nanl() 47 return (u.ieee.e); in nanl()
|
/bionic/libm/ |
D | fpmath.h | 81 #define mask_nbit_l(u) ((void)0) argument 86 #define LDBL_TO_ARRAY32(u, a) do { \ argument 87 (a)[0] = (uint32_t)(u).bits.manl; \ 88 (a)[1] = (uint32_t)((u).bits.manl >> 32); \ 89 (a)[2] = (uint32_t)(u).bits.manh; \ 90 (a)[3] = (uint32_t)((u).bits.manh >> 32); \
|