/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_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_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_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_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_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_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_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_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_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_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 | 86 } u; local 88 _scan_nan(u.bits, 2, s); 90 u.bits[1] |= 0x7ff80000; 92 u.bits[0] |= 0x7ff80000; 94 return (u.d); 103 } u; local 105 _scan_nan(u.bits, 1, s); 106 u.bits[0] |= 0x7fc00000; 107 return (u.f);
|
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_cbrtl.c | 37 union IEEEl2bits u, v; in cbrtl() local 45 u.e = x; in cbrtl() 46 expsign = u.xbits.expsign; in cbrtl() 59 if ((u.bits.manh | u.bits.manl) == 0) in cbrtl() 62 u.e *= 0x1.0p514; in cbrtl() 63 k = u.bits.exp; in cbrtl() 67 u.xbits.expsign = BIAS; in cbrtl() 70 x = u.e; in cbrtl()
|
D | e_acosl.c | 46 union IEEEl2bits u; in acosl() local 49 u.e = x; in acosl() 50 expsign = u.xbits.expsign; in acosl() 53 if(expt==BIAS && ((u.bits.manh&~LDBL_NBIT)|u.bits.manl)==0) { in acosl() 77 u.e = s; in acosl() 78 u.bits.manl = 0; in acosl() 79 df = u.e; in acosl()
|
/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/ |
D | b_log.c | 368 double F, f, g, q, u, u2, v, zero = 0.0, one = 1.0; 395 u = 2*f*g; 396 v = u*u; 397 q = u*v*(A1 + v*(A2 + v*(A3 + v*A4))); 404 u1 = u + 513, u1 -= 513; 410 u1 = u, TRUNC(u1); 437 double F, f, g, q, u, v, u2; local 455 u = 2*f*g; 456 v = u*u; 457 q = u*v*(A1 + v*(A2 + v*(A3 + v*A4))); [all …]
|
D | b_tgamma.c | 134 struct Double u; local 139 u = large_gam(x); 140 return(__exp__D(u.a, u.b)); 147 u.a = one - tiny; /* raise inexact */ 162 struct Double t, u, v; local 168 u = __log__D(x); 169 u.a -= one; 173 t.a = v.a*u.a; /* t = (x-.5)*(log(x)-1) */ 174 t.b = v.b*u.a + x*u.b; 177 u.a = lns2pi_hi + t.b; u.a += t.a; [all …]
|
/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/ld128/ |
D | s_exp2l.c | 358 union IEEEl2bits u, v; in exp2l() local 363 u.e = x; in exp2l() 366 hx = u.xbits.expsign; in exp2l() 370 if (u.xbits.manh != 0 in exp2l() 371 || u.xbits.manl != 0 in exp2l() 399 u.e = x + redux; in exp2l() 400 i0 = (u.bits.manl & 0xffffffff) + TBLSIZE / 2; in exp2l() 403 u.e -= redux; in exp2l() 404 z = x - u.e; in exp2l()
|