/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/ |
D | stdio_private.h | 311 _u128 v; in _u128_plus_64() local 313 v.lo = a.lo + b; in _u128_plus_64() 314 v.hi = a.hi; in _u128_plus_64() 315 if (v.lo < a.lo) in _u128_plus_64() 316 v.hi++; in _u128_plus_64() 317 return v; in _u128_plus_64() 323 _u128 v; in _u128_plus() local 325 v.lo = a.lo + b.lo; in _u128_plus() 326 v.hi = a.hi + b.hi; in _u128_plus() 327 if (v.lo < a.lo) in _u128_plus() [all …]
|
D | ultoa_invert.c | 139 char v; in __ultoa_invert() local 142 val = udivmod(val, base, &v); in __ultoa_invert() 144 v = val % base; in __ultoa_invert() 147 if (v > 9) in __ultoa_invert() 148 v += hex; in __ultoa_invert() 149 v += '0'; in __ultoa_invert() 150 *str++ = v; in __ultoa_invert()
|
D | dtoa_ryu.c | 52 static int decimalLength17(const uint64_t v) { in decimalLength17() argument 55 while (c <= v) { in decimalLength17() 327 floating_decimal_64* const v) { in d2d_small_int() argument 353 v->mantissa = m2 >> -e2; in d2d_small_int() 354 v->exponent = 0; in d2d_small_int() 398 floating_decimal_64 v; in __dtoa_engine() local 399 const bool isSmallInt = d2d_small_int(ieeeMantissa, ieeeExponent, &v); in __dtoa_engine() 406 const uint64_t q = div10(v.mantissa); in __dtoa_engine() 407 const uint32_t r = ((uint32_t) v.mantissa) - 10 * ((uint32_t) q); in __dtoa_engine() 411 v.mantissa = q; in __dtoa_engine() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/posix/ |
D | regexec.c | 68 #define CLEAR(v) ((v) = 0) argument 69 #define SET0(v, n) ((v) &= ~((unsigned long)1 << (n))) argument 70 #define SET1(v, n) ((v) |= (unsigned long)1 << (n)) argument 71 #define ISSET(v, n) (((v) & ((unsigned long)1 << (n))) != 0) argument 77 #define SETUP(v) ((v) = 0) argument 81 #define ISSTATEIN(v, o) (((v) & (o)) != 0) argument 86 #define ISSETBACK(v, n) (((v) & ((unsigned long)here >> (n))) != 0) argument 115 #define CLEAR(v) memset(v, 0, m->g->nstates) argument 116 #define SET0(v, n) ((v)[n] = 0) argument 117 #define SET1(v, n) ((v)[n] = 1) argument [all …]
|
/picolibc-3.7.0-3.6.0/test/ |
D | test-long-long.c | 48 unsigned long long v = 0; in naive_atou() local 56 v = v * 10 + (c - '0'); in naive_atou() 59 return v * sign; in naive_atou() 65 long long v = 0; in naive_atol() local 83 v = v * 10 + (c - '0'); in naive_atol() 86 return v * sign; in naive_atol() 90 naive_utoa(char *buf, unsigned long long v) in naive_utoa() argument 95 *--buf = v % 10 + '0'; in naive_utoa() 96 v /= 10; in naive_utoa() 97 } while (v); in naive_utoa() [all …]
|
D | printf_scanf.c | 291 sprintf(buf, FMT(prefix, oconv), v); \ in main() 293 if (v != r || __n != 1) { \ in main() 294 …t%3d: " prefix " " oconv " wanted " FMT(prefix, oconv) " got " FMT(prefix, oconv) "\n", x, v, r); \ in main() 313 type v = (type) (0x123456789abcdef0LL >> (64 - sizeof(type) * 8)) >> x; \ in main() 314 type r = ~v; \ in main() 316 r = ~v; \ in main() 318 r = ~v; \ in main() 320 r = ~v; \ in main() 322 r = ~v; \ in main() 351 void *v = &i_addr; in main() local [all …]
|
D | long_double.c | 212 long double v = 0.0L; in naive_strtold() local 307 v = v * base + digit; in naive_strtold() 310 v = v + digit * frac_mul; in naive_strtold() 323 long double vpow = v * epow_top; in naive_strtold() 327 return ldexpl(v, exp * exp_sign); in naive_strtold() 409 long double v, r; in test_io() local 410 v = ldexpl(vals[i], test_exp[e]); in test_io() 422 sprintf(buf, formats[j], v); in test_io() 423 if (isinf(v)) { in test_io() 428 } else if (isnan(v)) { in test_io() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libm/machine/spu/headers/ |
D | fdim.h | 43 vec_double2 v; in _fdim() local 46 v = spu_promote(x - y, 0); in _fdim() 47 mask = (vec_uint4)spu_shuffle(v, v, VEC_SPLAT_U8(0)); in _fdim() 48 v = spu_andc(v, (vec_double2)spu_rlmaska(mask, -31)); in _fdim() 50 return (spu_extract(v, 0)); in _fdim()
|
D | erf_utils.h | 212 vec_float4 v; \ 217 v = spu_mul(inv_xsqu, onehalff); \ 219 p = spu_madd(qlast, spu_mul(v, spu_splats( 4.0f)), plast); q = plast; plast = p; qlast = q; \ 220 p = spu_madd(qlast, spu_mul(v, spu_splats( 3.0f)), plast); q = plast; plast = p; qlast = q; \ 221 p = spu_madd(qlast, spu_mul(v, spu_splats( 2.0f)), plast); q = plast; plast = p; qlast = q; \ 222 p = spu_madd(qlast, spu_mul(v, spu_splats( 1.0f)), plast); q = plast; plast = p; qlast = q; \ 229 vec_double2 v; \ 234 v = spu_mul(inv_xsqu, onehalfd); \ 236 p = spu_madd(qlast, spu_mul(v, spu_splats(40.0)), plast); q = plast; plast = p; qlast = q; \ 237 p = spu_madd(qlast, spu_mul(v, spu_splats(39.0)), plast); q = plast; plast = p; qlast = q; \ [all …]
|
D | ilogb.h | 54 vec_uint4 v, exp, exp_0, mant, mask, count; in _ilogb() local 61 v = (vec_uint4)spu_promote(x, 0); in _ilogb() 63 exp = spu_and(spu_rlmask(v, -20), mask); in _ilogb() 65 mant = spu_and(v, VEC_LITERAL(vec_uint4, 0x000FFFFF, 0xFFFFFFFF, 0, 0)); in _ilogb()
|
D | ilogbf.h | 46 vec_uint4 v, exp; in _ilogbf() local 48 v = (vec_uint4)spu_promote(x, 0); in _ilogbf() 49 exp = spu_and(spu_rlmask(v, -23), 0xFF); in _ilogbf()
|
/picolibc-3.7.0-3.6.0/newlib/libc/stdio/ |
D | sccl.c | 37 register int c, n, v; in __sccl() local 43 v = 1; /* default => accept */ in __sccl() 47 v = 0; /* default => reject */ in __sccl() 50 tab[n] = v; in __sccl() 62 v = 1 - v; in __sccl() 65 tab[c] = v; /* take character c */ in __sccl() 96 tab[++c] = v; in __sccl()
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/h8500/ |
D | mulsi3.c | 23 long v; member 40 if (a.v < 0) in __mulsi3() 43 a.v = - a.v; in __mulsi3() 45 if (b.v < 0) in __mulsi3() 48 b.v = - b.v; in __mulsi3()
|
/picolibc-3.7.0-3.6.0/newlib/libm/math/ |
D | k_tan.c | 75 __float64 z, r, v, w, s; in __kernel_tan() local 92 v = y - (z - x); in __kernel_tan() 96 return t + a * (s + t * v); in __kernel_tan() 118 v = z * in __kernel_tan() 121 r = y + z * (s * (r + v) + y); in __kernel_tan() 125 v = (__float64)iy; in __kernel_tan() 127 (v - _F_64(2.0) * (x - (w * w / (w + v) - r))); in __kernel_tan() 137 v = r - (z - x); /* z+v = r+x */ in __kernel_tan() 141 return t + a * (s + t * v); in __kernel_tan()
|
D | kf_tan.c | 39 float z, r, v, w, s; in __kernel_tanf() local 69 v = z * in __kernel_tanf() 72 r = y + z * (s * (r + v) + y); in __kernel_tanf() 76 v = (float)iy; in __kernel_tanf() 78 (v - (float)2.0 * (x - (w * w / (w + v) - r))); in __kernel_tanf() 90 v = r - (z - x); /* z+v = r+x */ in __kernel_tanf() 95 return t + a * (s + t * v); in __kernel_tanf()
|
D | kf_sin.c | 29 float z, r, v; in __kernel_sinf() local 36 v = z * x; in __kernel_sinf() 39 return x + v * (S1 + z * r); in __kernel_sinf() 41 return x - ((z * (half * y - v * r) - y) - v * S1); in __kernel_sinf()
|
D | k_sin.c | 58 __float64 z, r, v; in __kernel_sin() local 65 v = z * x; in __kernel_sin() 68 return x + v * (S1 + z * r); in __kernel_sin() 70 return x - ((z * (half * y - v * r) - y) - v * S1); in __kernel_sin()
|
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld80/ |
D | k_sinl.c | 50 long double z,r,v; in __kernel_sinl() local 53 v = z*x; in __kernel_sinl() 55 if(iy==0) return x+v*(S1+z*r); in __kernel_sinl() 56 else return x-((z*(0.5l*y-v*r)-y)-v*S1); in __kernel_sinl()
|
D | k_tanl.c | 72 long double z, r, v, w, s; in __kernel_tanl() local 94 …v = z * ((long double)T7 + w * ((long double)T11 + w * ((long double)T15 + w * ((long double)T19 +… in __kernel_tanl() 97 r = y + z * (s * (r + v) + y); in __kernel_tanl() 101 v = (long double) iy; in __kernel_tanl() 103 (v - 2.0L * (x - (w * w / (w + v) - r))); in __kernel_tanl() 116 v = r - (z - x); /* z+v = r+x */ in __kernel_tanl() 120 return t + a * (s + t * v); in __kernel_tanl()
|
D | s_exp2l.c | 207 union IEEEl2bits u, v; in exp2l() local 251 v.xbits.man = 1ULL << 63; in exp2l() 253 v.xbits.expsign = LDBL_MAX_EXP - 1 + k; in exp2l() 254 twopk = v.e; in exp2l() 256 v.xbits.expsign = LDBL_MAX_EXP - 1 + k + 10000; in exp2l() 257 twopkp10000 = v.e; in exp2l()
|
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld128/ |
D | k_sinl.c | 49 long double z,r,v; in __kernel_sinl() local 52 v = z*x; in __kernel_sinl() 55 if(iy==0) return x+v*(S1+z*r); in __kernel_sinl() 56 else return x-((z*((long double)half*y-v*r)-y)-v*S1); in __kernel_sinl()
|
D | k_tanl.c | 64 long double z, r, v, w, s; in __kernel_tanl() local 88 v = z * (T7 + w * (T11 + w * (T15 + w * (T19 + w * (T23 + in __kernel_tanl() 92 r = y + z * (s * (r + v) + y); in __kernel_tanl() 96 v = (long double) iy; in __kernel_tanl() 98 (v - 2.0L * (x - (w * w / (w + v) - r))); in __kernel_tanl() 111 v = r - (z - x); /* z+v = r+x */ in __kernel_tanl() 115 return t + a * (s + t * v); in __kernel_tanl()
|
D | s_exp2l.c | 354 union IEEEl2bits u, v; in exp2l() local 401 v.xbits.manh = 0; in exp2l() 402 v.xbits.manl = 0; in exp2l() 404 v.xbits.expsign = LDBL_MAX_EXP - 1 + k; in exp2l() 405 twopk = v.e; in exp2l() 407 v.xbits.expsign = LDBL_MAX_EXP - 1 + k + 10000; in exp2l() 408 twopkp10000 = v.e; in exp2l()
|
/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/ |
D | chacha_private.h | 37 #define U8V(v) ((u8)(v)) argument 38 #define U32V(v) ((u32)(v)) argument 40 #define ROTL32(v, n) \ argument 41 (U32V((v) << (n)) | ((v) >> (32 - (n)))) 49 #define U32TO8_LITTLE(p, v) \ argument 51 (p)[0] = U8V((v) ); \ 52 (p)[1] = U8V((v) >> 8); \ 53 (p)[2] = U8V((v) >> 16); \ 54 (p)[3] = U8V((v) >> 24); \ 57 #define ROTATE(v,c) (ROTL32(v,c)) argument [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/include/rpc/ |
D | xdr.h | 269 #define IXDR_PUT_INT32(buf, v) (*(buf)++ =(int32_t)htonl((u_int32_t)v)) argument 271 #define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_INT32((buf), ((int32_t)(v))) argument 278 #define IXDR_PUT_LONG(buf, v) (*(buf)++ =(int32_t)htonl((u_int32_t)v)) argument 280 #define IXDR_PUT_U_LONG(buf, v) IXDR_PUT_LONG((buf), (v)) argument 287 #define IXDR_PUT_BOOL(buf, v) IXDR_PUT_LONG((buf), (v)) argument 288 #define IXDR_PUT_ENUM(buf, v) IXDR_PUT_LONG((buf), (v)) argument 289 #define IXDR_PUT_SHORT(buf, v) IXDR_PUT_LONG((buf), (v)) argument 290 #define IXDR_PUT_U_SHORT(buf, v) IXDR_PUT_LONG((buf), (v)) argument
|