Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 69) sorted by relevance

123

/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/
Dstdio_private.h311 _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 …]
Dultoa_invert.c139 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()
Ddtoa_ryu.c52 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/
Dregexec.c68 #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/
Dtest-long-long.c48 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 …]
Dprintf_scanf.c291 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 …]
Dlong_double.c212 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/
Dfdim.h43 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()
Derf_utils.h212 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 …]
Dilogb.h54 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()
Dilogbf.h46 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/
Dsccl.c37 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/
Dmulsi3.c23 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/
Dk_tan.c75 __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()
Dkf_tan.c39 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()
Dkf_sin.c29 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()
Dk_sin.c58 __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/
Dk_sinl.c50 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()
Dk_tanl.c72 long double z, r, v, w, s; in __kernel_tanl() local
94v = 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()
Ds_exp2l.c207 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/
Dk_sinl.c49 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()
Dk_tanl.c64 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()
Ds_exp2l.c354 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/
Dchacha_private.h37 #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/
Dxdr.h269 #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

123