Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 154) sorted by relevance

1234567

/picolibc-latest/newlib/libc/stdlib/
Dgetsubopt.c47 char *p; in getsubopt() local
55 for (p = *optionp; *p && (*p == ',' || *p == ' ' || *p == '\t'); ++p); in getsubopt()
57 if (!*p) { in getsubopt()
58 *optionp = p; in getsubopt()
63 for (suboptarg = p; in getsubopt()
64 *++p && *p != ',' && *p != '=' && *p != ' ' && *p != '\t';); in getsubopt()
66 if (*p) { in getsubopt()
72 if (*p == '=') { in getsubopt()
73 *p = '\0'; in getsubopt()
74 for (*valuep = ++p; in getsubopt()
[all …]
D__atexit.c66 register struct _atexit *p; in __register_exitproc() local
70 p = _atexit; in __register_exitproc()
71 if (p == NULL) in __register_exitproc()
73 _atexit = p = &_atexit0; in __register_exitproc()
75 if (p->_ind >= _ATEXIT_SIZE) in __register_exitproc()
81 p = (struct _atexit *) malloc (sizeof *p); in __register_exitproc()
82 if (p == NULL) in __register_exitproc()
87 p->_ind = 0; in __register_exitproc()
88 p->_next = _atexit; in __register_exitproc()
89 _atexit = p; in __register_exitproc()
[all …]
D__call_atexit.c98 register struct _atexit *p; in __call_exitprocs() local
110 p = _atexit; in __call_exitprocs()
112 while (p) in __call_exitprocs()
114 args = &p->_on_exit_args; in __call_exitprocs()
115 for (n = p->_ind - 1; n >= 0; n--) in __call_exitprocs()
127 fn = p->_fns[n]; in __call_exitprocs()
128 if (n == p->_ind - 1) in __call_exitprocs()
129 p->_ind--; in __call_exitprocs()
131 p->_fns[n] = NULL; in __call_exitprocs()
137 ind = p->_ind; in __call_exitprocs()
[all …]
Decvtbuf.c81 char *p; in print_e() local
86 p = __dtoa (invalue, 2, width + 1, &decpt, &sign, &end); in print_e()
87 if (!p) { in print_e()
94 strcpy (buf, p); in print_e()
98 *buf++ = *p++; in print_e()
102 while (*p && ndigit > 0) in print_e()
108 *buf++ = *p++; in print_e()
185 char *p; in fcvtbuf() local
208 p = __dtoa (invalue, 3, ndigit, decpt, sign, &end); in fcvtbuf()
209 if (!p) in fcvtbuf()
[all …]
Dlcong48.c18 unsigned short p[7]) in _lcong48_r()
20 r->_seed[0] = p[0]; in _lcong48_r()
21 r->_seed[1] = p[1]; in _lcong48_r()
22 r->_seed[2] = p[2]; in _lcong48_r()
23 r->_mult[0] = p[3]; in _lcong48_r()
24 r->_mult[1] = p[4]; in _lcong48_r()
25 r->_mult[2] = p[5]; in _lcong48_r()
26 r->_add = p[6]; in _lcong48_r()
31 lcong48 (unsigned short p[7]) in lcong48()
33 _lcong48_r (&_rand48, p); in lcong48()
Dmallocr.c1009 #define chunk2mem(p) ((void*)((char*)(p) + 2*SIZE_SZ)) argument
1046 #define next_chunk(p) ((mchunkptr)( ((char*)(p)) + ((p)->size & ~PREV_INUSE) )) argument
1050 #define prev_chunk(p)\ argument
1051 ((mchunkptr)( ((char*)(p)) - ((p)->prev_size) ))
1056 #define chunk_at_offset(p, s) ((mchunkptr)(((char*)(p)) + (s))) argument
1067 #define inuse(p)\ argument
1068 ((((mchunkptr)(((char*)(p))+((p)->size & ~PREV_INUSE)))->size) & PREV_INUSE)
1072 #define prev_inuse(p) ((p)->size & PREV_INUSE) argument
1076 #define chunk_is_mmapped(p) ((p)->size & IS_MMAPPED) argument
1080 #define set_inuse(p)\ argument
[all …]
Dputenv.c26 register char *p, *equal; in putenv() local
29 p = strdup (str); in putenv()
31 if (!p) in putenv()
34 if (!(equal = strchr (p, '='))) in putenv()
36 (void) free (p); in putenv()
41 rval = setenv (p, equal + 1, 1); in putenv()
42 (void) free (p); in putenv()
Dnano-malloc.c48 char *p, *align_p; in __malloc_sbrk_aligned() local
63 p = sbrk(d); in __malloc_sbrk_aligned()
66 if (p == (void *)-1) in __malloc_sbrk_aligned()
67 return p; in __malloc_sbrk_aligned()
69 __malloc_sbrk_top = p + s; in __malloc_sbrk_aligned()
75 align_p = __align_up(p + MALLOC_HEAD, MALLOC_CHUNK_ALIGN) - MALLOC_HEAD; in __malloc_sbrk_aligned()
77 if (align_p != p) in __malloc_sbrk_aligned()
85 intptr_t adjust = align_p - p; in __malloc_sbrk_aligned()
87 if (extra != p + s) in __malloc_sbrk_aligned()
133 chunk_t **p, *r; in malloc() local
[all …]
/picolibc-latest/newlib/libm/ld/ld128/
De_lgammal_r.c723 neval (long double x, const long double *p, int n) in neval() argument
727 p += n; in neval()
728 y = *p--; in neval()
731 y = y * x + *p--; in neval()
741 deval (long double x, const long double *p, int n) in deval() argument
745 p += n; in deval()
746 y = x + *p--; in deval()
749 y = y * x + *p--; in deval()
759 long double p, q, w, z, nx; in lgammal_r() local
778 p = floorl (q); in lgammal_r()
[all …]
/picolibc-latest/newlib/doc/
Dmakedocbook.py349 for p in re.split(r',(?![^()]*\))', match.group(3)):
350 p = p.strip()
353 print(p, file=sys.stderr)
355 if p == '...':
362 match2 = re.match(r'(.*)<\[(.*)\]>(.*)', p)
451 def line_markup_convert(p): argument
452 s = p
491 if (verbose > 3) and (s != p):
492 print('%s-> line_markup_convert ->\n%s' % (p, s), file=sys.stderr)
604 def parser_verbose(p): argument
[all …]
/picolibc-latest/newlib/libc/iconv/lib/
Daliasesi.c51 char *p, *p1; in canonical_form() local
53 if (str == NULL || (p = p1 = strdup (str)) == NULL) in canonical_form()
56 for (; *str; str++, p++) in canonical_form()
59 *p = '_'; in canonical_form()
61 *p = tolower (*str); in canonical_form()
97 const char *p; in find_alias() local
107 if (len < l || (p = strnstr (ptable, alias, len)) == NULL) in find_alias()
111 if (!((p == table || isspace (*(p-1)) || *(p-1) == '\n') in find_alias()
112 && (p+l == table_end || isspace (*(p+l)) || *(p+l) == '\n'))) in find_alias()
114 ptable = p + l; in find_alias()
[all …]
/picolibc-latest/newlib/libc/include/sys/
Dendian.h102 uint8_t const *p = (uint8_t const *)pp; in be16dec() local
104 return (((unsigned)p[0] << 8) | p[1]); in be16dec()
110 uint8_t const *p = (uint8_t const *)pp; in be32dec() local
112 return (((uint32_t)p[0] << 24) | ((uint32_t)p[1] << 16) | in be32dec()
113 ((uint32_t)p[2] << 8) | p[3]); in be32dec()
119 uint8_t const *p = (uint8_t const *)pp; in be64dec() local
121 return (((uint64_t)be32dec(p) << 32) | be32dec(p + 4)); in be64dec()
127 uint8_t const *p = (uint8_t const *)pp; in le16dec() local
129 return (((unsigned)p[1] << 8) | p[0]); in le16dec()
135 uint8_t const *p = (uint8_t const *)pp; in le32dec() local
[all …]
/picolibc-latest/newlib/libc/misc/
D__dprintf.c100 char c, *p; local
113 p = va_arg (args, char *);
122 write_string (unctrl (*p++));
125 print_number (16, 1, get_number (p, sizeof (char *), 1));
126 p += sizeof (char *);
132 get_number (p, sizeof (int), c != 'd'));
133 p += sizeof (int);
136 write_string (*(char **) p);
137 p += sizeof (char *);
163 p = va_arg (args, char *);
[all …]
/picolibc-latest/newlib/libc/posix/
Ddirname.c22 char *p; in dirname() local
25 p = path + strlen(path) - 1; in dirname()
26 while( *p == '/' ) { in dirname()
27 if( p == path ) in dirname()
29 *p-- = '\0'; in dirname()
31 while( p >= path && *p != '/' ) in dirname()
32 p--; in dirname()
33 while( p > path && p[-1] == '/' ) in dirname()
34 p--; in dirname()
36 p < path ? "." : in dirname()
[all …]
Dregcomp.c78 static void p_ere(struct parse *p, int stop);
79 static void p_ere_exp(struct parse *p);
80 static void p_str(struct parse *p);
81 static void p_bre(struct parse *p, int end1, int end2);
82 static int p_simp_re(struct parse *p, int starordinary);
83 static int p_count(struct parse *p);
84 static void p_bracket(struct parse *p);
85 static void p_b_term(struct parse *p, cset *cs);
86 static void p_b_cclass(struct parse *p, cset *cs);
87 static void p_b_eclass(struct parse *p, cset *cs);
[all …]
Dbasename.c13 char *p; in basename() local
16 p = path + strlen(path) - 1; in basename()
17 while( *p == '/' ) { in basename()
18 if( p == path ) in basename()
20 *p-- = '\0'; in basename()
22 while( p >= path && *p != '/' ) in basename()
23 p--; in basename()
24 return p + 1; in basename()
/picolibc-latest/newlib/libm/machine/spu/headers/
Derf_utils.h213 vec_float4 p, q, plast, qlast; \
218 p = spu_splats(1.945f); q = onef; plast = p; qlast = q; \
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; \
223 p = qlast; q = plast; \
225 _presult = _divf4(p, spu_mul(factor, q)); \
230 vec_double2 p, q, plast, qlast; \
235 p = spu_splats(3.025); q = oned; plast = p; qlast = q; \
[all …]
/picolibc-latest/newlib/libm/math/
Ds_remainder.c30 remainder64(__float64 x, __float64 p) in remainder64() argument
37 EXTRACT_WORDS(hp, lp, p); in remainder64()
43 if (isnan(x) || isnan(p)) in remainder64()
44 return x + p; in remainder64()
50 return (x * p) / (x * p); /* p = 0 */ in remainder64()
53 x = fmod(x, p + p); /* now x < 2p */ in remainder64()
58 p = fabs64(p); in remainder64()
60 if (x + x > p) { in remainder64()
61 x -= p; in remainder64()
62 if (x + x >= p) in remainder64()
[all …]
Dsf_remainder.c21 remainderf(float x, float p) in remainderf() argument
28 GET_FLOAT_WORD(hp, p); in remainderf()
35 return x + p; in remainderf()
41 x = fmodf(x, p + p); /* now x < 2p */ in remainderf()
45 p = fabsf(p); in remainderf()
47 if (x + x > p) { in remainderf()
48 x -= p; in remainderf()
49 if (x + x >= p) in remainderf()
50 x -= p; in remainderf()
53 p_half = (float)0.5 * p; in remainderf()
[all …]
/picolibc-latest/newlib/libm/common/
Dsincosf.h65 sincosf_poly (double x, double x2, const sincos_t *p, int n, float *sinp, in sincosf_poly() argument
72 c2 = p->c3 + x2 * p->c4; in sincosf_poly()
73 s1 = p->s2 + x2 * p->s3; in sincosf_poly()
80 c1 = p->c0 + x2 * p->c1; in sincosf_poly()
84 s = x + x3 * p->s1; in sincosf_poly()
85 c = c1 + x4 * p->c2; in sincosf_poly()
94 sinf_poly (double x, double x2, const sincos_t *p, int n) in sinf_poly() argument
101 s1 = p->s2 + x2 * p->s3; in sinf_poly()
104 s = x + x3 * p->s1; in sinf_poly()
111 c2 = p->c3 + x2 * p->c4; in sinf_poly()
[all …]
Dcosf.c47 const sincos_t *p = &__sincosf_table[0]; in cosf() local
56 return sinf_poly (x, x2, p, 1); in cosf()
60 x = reduce_fast (x, p, &n); in cosf()
63 s = p->sign[n & 3]; in cosf()
66 p = &__sincosf_table[1]; in cosf()
68 return sinf_poly (x * s, x * x, p, n ^ 1); in cosf()
78 s = p->sign[(n + sign) & 3]; in cosf()
81 p = &__sincosf_table[1]; in cosf()
83 return sinf_poly (x * s, x * x, p, n ^ 1); in cosf()
/picolibc-latest/newlib/libc/string/
Dwcsrchr.c65 const wchar_t *p; in wcsrchr() local
67 p = s; in wcsrchr()
68 while (*p) in wcsrchr()
69 p++; in wcsrchr()
70 while (s <= p) in wcsrchr()
72 if (*p == c) in wcsrchr()
75 return (wchar_t *) p; in wcsrchr()
77 p--; in wcsrchr()
/picolibc-latest/test/
Dffs.c57 int p; in slow_ffs() local
60 for (p = 1; (i & (1 << (p - 1))) == 0; p++) in slow_ffs()
62 return p; in slow_ffs()
68 int p; in slow_ffsl() local
71 for (p = 1; (i & (1L << (p - 1))) == 0; p++) in slow_ffsl()
73 return p; in slow_ffsl()
79 int p; in slow_ffsll() local
82 for (p = 1; (i & (1LL << (p - 1))) == 0; p++) in slow_ffsll()
84 return p; in slow_ffsll()
Dt_fmemopen.c132 const char **p; in ATF_TC_BODY() local
136 for (p = &mode_rwa[0]; *p != NULL; ++p) { in ATF_TC_BODY()
137 fp = fmemopen(&buf[0], sizeof(buf), *p); in ATF_TC_BODY()
155 const char **p; in ATF_TC_BODY() local
164 for (p = &mode[0]; *p != NULL; ++p) { in ATF_TC_BODY()
169 fp = fmemopen(NULL, BUFSIZ, *p); in ATF_TC_BODY()
189 const char **p; in ATF_TC_BODY() local
193 for (p = &mode_r[0]; *p != NULL; ++p) { in ATF_TC_BODY()
196 fp = fmemopen(&buf[0], sizeof(buf), *p); in ATF_TC_BODY()
242 const char **p; in ATF_TC_BODY() local
[all …]
/picolibc-latest/newlib/libm/test/
Dmath.c103 one_line_type *p, in ffcheck_id() argument
117 thedouble(p->qs[id].msw, p->qs[id].lsw, &correct.value); in ffcheck_id()
119 int error_bit = p->error_bit; in ffcheck_id()
144 name, p->line, mag, in ffcheck_id()
153 if (p->qs[id].merror != merror) in ffcheck_id()
157 name, p->line, merror, p->qs[id].merror); in ffcheck_id()
160 if (p->qs[id].errno_val != errno) in ffcheck_id()
163 name, p->line, errno, p->qs[id].errno_val); in ffcheck_id()
172 one_line_type *p, in ffcheck() argument
177 return ffcheck_id(is, p, name, serrno, merror, 0); in ffcheck()
[all …]

1234567