/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/ |
D | getsubopt.c | 51 char *p; in getsubopt() local 59 for (p = *optionp; *p && (*p == ',' || *p == ' ' || *p == '\t'); ++p); in getsubopt() 61 if (!*p) { in getsubopt() 62 *optionp = p; in getsubopt() 67 for (suboptarg = p; in getsubopt() 68 *++p && *p != ',' && *p != '=' && *p != ' ' && *p != '\t';); in getsubopt() 70 if (*p) { in getsubopt() 76 if (*p == '=') { in getsubopt() 77 *p = '\0'; in getsubopt() 78 for (*valuep = ++p; in getsubopt() [all …]
|
D | __atexit.c | 66 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.c | 98 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 …]
|
D | ecvtbuf.c | 76 char *p, *start, *end; in print_f() local 79 start = p = __dtoa (invalue, mode, ndigit, &decpt, &sign, &end); in print_f() 80 if (!p) { in print_f() 87 strcpy (buf, p); in print_f() 90 while (*p && decpt > 0) in print_f() 92 *buf++ = *p++; in print_f() 102 if (dot || *p) in print_f() 104 if (p == start) in print_f() 116 while (*p && ndigit > 0) in print_f() 118 *buf++ = *p++; in print_f() [all …]
|
D | lcong48.c | 18 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()
|
D | mallocr.c | 1383 #define chunk2mem(p) ((Void_t*)((char*)(p) + 2*SIZE_SZ)) argument 1420 #define next_chunk(p) ((mchunkptr)( ((char*)(p)) + ((p)->size & ~PREV_INUSE) )) argument 1424 #define prev_chunk(p)\ argument 1425 ((mchunkptr)( ((char*)(p)) - ((p)->prev_size) )) 1430 #define chunk_at_offset(p, s) ((mchunkptr)(((char*)(p)) + (s))) argument 1441 #define inuse(p)\ argument 1442 ((((mchunkptr)(((char*)(p))+((p)->size & ~PREV_INUSE)))->size) & PREV_INUSE) 1446 #define prev_inuse(p) ((p)->size & PREV_INUSE) argument 1450 #define chunk_is_mmapped(p) ((p)->size & IS_MMAPPED) argument 1454 #define set_inuse(p)\ argument [all …]
|
D | putenv.c | 26 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()
|
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld128/ |
D | e_lgammal_r.c | 723 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-3.7.0-3.6.0/newlib/doc/ |
D | makedocbook.py | 349 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-3.7.0-3.6.0/newlib/libc/iconv/lib/ |
D | aliasesi.c | 53 char *p, *p1; in canonical_form() local 55 if (str == NULL || (p = p1 = strdup (str)) == NULL) in canonical_form() 58 for (; *str; str++, p++) in canonical_form() 61 *p = '_'; in canonical_form() 63 *p = tolower (*str); in canonical_form() 99 const char *p; in find_alias() local 109 if (len < l || (p = strnstr (ptable, alias, len)) == NULL) in find_alias() 113 if (!((p == table || isspace (*(p-1)) || *(p-1) == '\n') in find_alias() 114 && (p+l == table_end || isspace (*(p+l)) || *(p+l) == '\n'))) in find_alias() 116 ptable = p + l; in find_alias() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/include/sys/ |
D | endian.h | 102 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-3.7.0-3.6.0/newlib/libc/misc/ |
D | __dprintf.c | 101 char c, *p; local 114 p = va_arg (args, char *); 123 write_string (unctrl (*p++)); 126 print_number (16, 1, get_number (p, sizeof (char *), 1)); 127 p += sizeof (char *); 133 get_number (p, sizeof (int), c != 'd')); 134 p += sizeof (int); 137 write_string (*(char **) p); 138 p += sizeof (char *); 164 p = va_arg (args, char *); [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/posix/ |
D | dirname.c | 22 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 …]
|
D | regcomp.c | 78 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 …]
|
D | basename.c | 13 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-3.7.0-3.6.0/newlib/libm/machine/spu/headers/ |
D | erf_utils.h | 213 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-3.7.0-3.6.0/newlib/libm/math/ |
D | s_remainder.c | 30 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 …]
|
D | sf_remainder.c | 21 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-3.7.0-3.6.0/newlib/libm/common/ |
D | sincosf.h | 65 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 …]
|
D | cosf.c | 47 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-3.7.0-3.6.0/newlib/libc/string/ |
D | wcsrchr.c | 66 const wchar_t *p; in wcsrchr() local 68 p = s; in wcsrchr() 69 while (*p) in wcsrchr() 70 p++; in wcsrchr() 71 while (s <= p) in wcsrchr() 73 if (*p == c) in wcsrchr() 76 return (wchar_t *) p; in wcsrchr() 78 p--; in wcsrchr()
|
/picolibc-3.7.0-3.6.0/test/ |
D | ffs.c | 57 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()
|
D | t_fmemopen.c | 138 const char **p; in ATF_TC_BODY() local 142 for (p = &mode_rwa[0]; *p != NULL; ++p) { in ATF_TC_BODY() 143 fp = fmemopen(&buf[0], sizeof(buf), *p); in ATF_TC_BODY() 161 const char **p; in ATF_TC_BODY() local 170 for (p = &mode[0]; *p != NULL; ++p) { in ATF_TC_BODY() 175 fp = fmemopen(NULL, BUFSIZ, *p); in ATF_TC_BODY() 195 const char **p; in ATF_TC_BODY() local 199 for (p = &mode_r[0]; *p != NULL; ++p) { in ATF_TC_BODY() 202 fp = fmemopen(&buf[0], sizeof(buf), *p); in ATF_TC_BODY() 248 const char **p; in ATF_TC_BODY() local [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libm/test/ |
D | math.c | 101 one_line_type *p, in ffcheck_id() argument 115 thedouble(p->qs[id].msw, p->qs[id].lsw, &correct.value); in ffcheck_id() 117 int error_bit = p->error_bit; in ffcheck_id() 142 name, p->line, mag, in ffcheck_id() 151 if (p->qs[id].merror != merror) in ffcheck_id() 155 name, p->line, merror, p->qs[id].merror); in ffcheck_id() 158 if (p->qs[id].errno_val != errno) in ffcheck_id() 161 name, p->line, errno, p->qs[id].errno_val); in ffcheck_id() 170 one_line_type *p, in ffcheck() argument 175 return ffcheck_id(is, p, name, serrno, merror, 0); in ffcheck() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/include/machine/ |
D | ieee.h | 10 #define EXT_TO_ARRAY32(p, a) do { \ argument 11 (a)[0] = (p)->ext_frac; \ 35 #define EXT_TO_ARRAY32(p, a) do { \ argument 36 (a)[0] = (p)->ext_fracl; \ 37 (a)[1] = (p)->ext_frach; \ 62 #define EXT_TO_ARRAY32(p, a) do { \ argument 63 (a)[0] = (p)->ext_fracl; \ 64 (a)[1] = (p)->ext_frach; \ 93 #define EXT_TO_ARRAY32(p, a) do { \ argument 94 (a)[0] = (p)->ext_fracl; \ [all …]
|