Home
last modified time | relevance | path

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

12345

/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Datexit.c63 struct atexit *p = __atexit; in __cxa_atexit() local
68 if (pgsize < sizeof(*p)) in __cxa_atexit()
71 p = __atexit; in __cxa_atexit()
72 if (p != NULL) { in __cxa_atexit()
73 if (p->ind + 1 >= p->max) in __cxa_atexit()
74 p = NULL; in __cxa_atexit()
75 else if (mprotect(p, pgsize, PROT_READ | PROT_WRITE)) in __cxa_atexit()
78 if (p == NULL) { in __cxa_atexit()
79 p = mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in __cxa_atexit()
81 if (p == MAP_FAILED) in __cxa_atexit()
[all …]
/bionic/libc/bionic/
Dmemchr.c33 const unsigned char* p = s; in memchr() local
34 const unsigned char* end = p + n; in memchr()
37 if (p >= end || p[0] == c) break; p++; in memchr()
38 if (p >= end || p[0] == c) break; p++; in memchr()
39 if (p >= end || p[0] == c) break; p++; in memchr()
40 if (p >= end || p[0] == c) break; p++; in memchr()
42 if (p >= end) in memchr()
45 return (void*) p; in memchr()
Dfts.c56 #define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) &~ ALIGNBYTES) argument
76 FTSENT *p, *root; in fts_open() local
117 if ((p = fts_alloc(sp, *argv, len)) == NULL) in fts_open()
119 p->fts_level = FTS_ROOTLEVEL; in fts_open()
120 p->fts_parent = parent; in fts_open()
121 p->fts_accpath = p->fts_name; in fts_open()
122 p->fts_info = fts_stat(sp, p, ISSET(FTS_COMFOLLOW)); in fts_open()
125 if (p->fts_info == FTS_DOT) in fts_open()
126 p->fts_info = FTS_D; in fts_open()
133 p->fts_link = root; in fts_open()
[all …]
Dmemrchr.c34 const char* p = (const char*) s; in memrchr() local
35 const char* q = p + n; in memrchr()
38 q--; if (q < p || q[0] == (char) c) break; in memrchr()
39 q--; if (q < p || q[0] == (char) c) break; in memrchr()
40 q--; if (q < p || q[0] == (char) c) break; in memrchr()
41 q--; if (q < p || q[0] == (char) c) break; in memrchr()
43 if (q >= p) in memrchr()
D__strchr_chk.cpp33 extern "C" char* __strchr_chk(const char* p, int ch, size_t s_len) { in __strchr_chk() argument
34 for (;; ++p, s_len--) { in __strchr_chk()
38 if (*p == static_cast<char>(ch)) { in __strchr_chk()
39 return const_cast<char*>(p); in __strchr_chk()
41 if (*p == '\0') { in __strchr_chk()
Dndk_cruft.cpp73 char* p = reinterpret_cast<char*>(m1); in memswap() local
74 char* p_end = p + n; in memswap()
76 while (p < p_end) { in memswap()
77 char tmp = *p; in memswap()
78 *p = *q; in memswap()
80 p++; in memswap()
142 const unsigned char* p = (const unsigned char *)nptr; in strntoumax() local
143 const unsigned char* end = p + n; in strntoumax()
148 while (p < end && isspace(*p)) { in strntoumax()
149 p++; in strntoumax()
[all …]
D__strrchr_chk.cpp33 extern "C" char* __strrchr_chk(const char *p, int ch, size_t s_len) { in __strrchr_chk() argument
34 for (char* save = NULL;; ++p, s_len--) { in __strrchr_chk()
38 if (*p == (char) ch) { in __strrchr_chk()
39 save = (char *)p; in __strrchr_chk()
41 if (!*p) { in __strrchr_chk()
Dnew.cpp26 void* p = malloc(size); in operator new() local
27 if (p == NULL) { in operator new()
30 return p; in operator new()
34 void* p = malloc(size); in operator new[]() local
35 if (p == NULL) { in operator new[]()
38 return p; in operator new[]()
/bionic/libm/upstream-freebsd/lib/msun/src/
De_remainderf.c26 __ieee754_remainderf(float x, float p) in __ieee754_remainderf() argument
33 GET_FLOAT_WORD(hp,p); in __ieee754_remainderf()
39 if(hp==0) return (x*p)/(x*p); /* p = 0 */ in __ieee754_remainderf()
42 return ((long double)x*p)/((long double)x*p); in __ieee754_remainderf()
45 if (hp<=0x7effffff) x = __ieee754_fmodf(x,p+p); /* now x < 2p */ in __ieee754_remainderf()
48 p = fabsf(p); in __ieee754_remainderf()
50 if(x+x>p) { in __ieee754_remainderf()
51 x-=p; in __ieee754_remainderf()
52 if(x+x>=p) x -= p; in __ieee754_remainderf()
55 p_half = (float)0.5*p; in __ieee754_remainderf()
[all …]
De_remainder.c35 __ieee754_remainder(double x, double p) in __ieee754_remainder() argument
42 EXTRACT_WORDS(hp,lp,p); in __ieee754_remainder()
48 if((hp|lp)==0) return (x*p)/(x*p); /* p = 0 */ in __ieee754_remainder()
52 return ((long double)x*p)/((long double)x*p); in __ieee754_remainder()
55 if (hp<=0x7fdfffff) x = __ieee754_fmod(x,p+p); /* now x < 2p */ in __ieee754_remainder()
58 p = fabs(p); in __ieee754_remainder()
60 if(x+x>p) { in __ieee754_remainder()
61 x-=p; in __ieee754_remainder()
62 if(x+x>=p) x -= p; in __ieee754_remainder()
65 p_half = 0.5*p; in __ieee754_remainder()
[all …]
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregcomp.c128 static void p_ere(struct parse *p, int stop, size_t reclimit);
129 static void p_ere_exp(struct parse *p, size_t reclimit);
130 static void p_str(struct parse *p);
131 static void p_bre(struct parse *p, int end1, int end2, size_t reclimit);
132 static int p_simp_re(struct parse *p, int starordinary, size_t reclimit);
133 static int p_count(struct parse *p);
134 static void p_bracket(struct parse *p);
135 static void p_b_term(struct parse *p, cset *cs);
136 static void p_b_cclass(struct parse *p, cset *cs);
137 static void p_b_eclass(struct parse *p, cset *cs);
[all …]
/bionic/libc/dns/net/
Dgetservent.c53 const char* p; in getservent_r() local
61 p = rs->servent_ptr; in getservent_r()
62 if (p == NULL) in getservent_r()
63 p = _services; in getservent_r()
64 else if (p[0] == 0) in getservent_r()
68 namelen = p[0]; in getservent_r()
70 q = p + 1 + namelen + 3; /* skip name + port + proto */ in getservent_r()
94 memcpy( rs->servent.s_name, p+1, namelen ); in getservent_r()
96 p += 1 + namelen; in getservent_r()
99 port = ((((unsigned char*)p)[0] << 8) | in getservent_r()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/net/
Dinet_ntoa.c44 char *p; in inet_ntoa() local
46 p = (char *)&in; in inet_ntoa()
49 "%u.%u.%u.%u", UC(p[0]), UC(p[1]), UC(p[2]), UC(p[3])); in inet_ntoa()
/bionic/libc/upstream-freebsd/lib/libc/string/
Dwcspbrk.c42 const wchar_t *p; in wcspbrk() local
45 p = s; in wcspbrk()
46 while (*p) { in wcspbrk()
49 if (*p == *q) { in wcspbrk()
51 return (wchar_t *)p; in wcspbrk()
55 p++; in wcspbrk()
Dwcscspn.c42 const wchar_t *p; in wcscspn() local
45 p = s; in wcscspn()
46 while (*p) { in wcscspn()
49 if (*p == *q) in wcscspn()
53 p++; in wcscspn()
57 return (p - s); in wcscspn()
Dwcslen.c42 const wchar_t *p; in wcslen() local
44 p = s; in wcslen()
45 while (*p) in wcslen()
46 p++; in wcslen()
48 return p - s; in wcslen()
Dwcsspn.c42 const wchar_t *p; in wcsspn() local
45 p = s; in wcsspn()
46 while (*p) { in wcsspn()
49 if (*p == *q) in wcsspn()
55 p++; in wcsspn()
59 return (p - s); in wcsspn()
Dwcsncat.c42 wchar_t *p; in wcsncat() local
46 p = s1; in wcsncat()
47 while (*p) in wcsncat()
48 p++; in wcsncat()
49 q = p; in wcsncat()
Dwmemset.c43 wchar_t *p; in wmemset() local
45 p = (wchar_t *)s; in wmemset()
47 *p = c; in wmemset()
48 p++; in wmemset()
/bionic/libc/upstream-netbsd/lib/libc/stdlib/
Dinsque.c46 struct qelem *p = (struct qelem *) pred; in insque() local
50 e->q_back = p; in insque()
51 if (p) { in insque()
52 e->q_forw = p->q_forw; in insque()
53 if (p->q_forw) in insque()
54 p->q_forw->q_back = e; in insque()
55 p->q_forw = e; in insque()
Dbsearch.c68 const void *p; in bsearch() local
75 p = base + (lim >> 1) * size; in bsearch()
76 cmp = (*compar)(key, p); in bsearch()
78 return __UNCONST(p); in bsearch()
80 base = (const char *)p + size; in bsearch()
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
Dhdtoa.c127 struct ieee_double *p = (struct ieee_double *)&d; in __hdtoa() local
131 *sign = p->dbl_sign; in __hdtoa()
135 *decpt = p->dbl_exp - DBL_ADJ; in __hdtoa()
142 *decpt = p->dbl_exp - (514 + DBL_ADJ); in __hdtoa()
179 *s = p->dbl_fracl & 0xf; in __hdtoa()
180 p->dbl_fracl >>= 4; in __hdtoa()
183 *s = p->dbl_frach & 0xf; in __hdtoa()
184 p->dbl_frach >>= 4; in __hdtoa()
193 *s = p->dbl_frach | (1U << ((DBL_MANT_DIG - 1) % 4)); in __hdtoa()
202 dorounding(s0, ndigits, p->dbl_sign, decpt); in __hdtoa()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/string/
Dwcsstr.c41 const wchar_t *p; in wcswcs() local
52 p = big; in wcswcs()
54 while (*p) { in wcswcs()
56 r = p; in wcswcs()
65 return (wchar_t *)p; in wcswcs()
67 p++; in wcswcs()
Dstrcspn.c42 const char *p, *spanp; in strcspn() local
49 for (p = s1;;) { in strcspn()
50 c = *p++; in strcspn()
54 return (p - 1 - s1); in strcspn()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfgetln.c49 void *p; in __slbexpand() local
56 if ((p = realloc(fp->_lb._base, newsize)) == NULL) in __slbexpand()
58 fp->_lb._base = p; in __slbexpand()
73 unsigned char *p; in fgetln() local
86 if ((p = memchr((void *)fp->_p, '\n', fp->_r)) != NULL) { in fgetln()
92 p++; /* advance over it */ in fgetln()
94 *lenp = len = p - fp->_p; in fgetln()
97 fp->_p = p; in fgetln()
127 if ((p = memchr((void *)fp->_p, '\n', fp->_r)) == NULL) in fgetln()
131 p++; in fgetln()
[all …]

12345