Home
last modified time | relevance | path

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

12345

/bionic/libc/stdlib/
Datexit.c82 struct atexit *p = __atexit; in __cxa_atexit() local
87 if (pgsize < sizeof(*p)) in __cxa_atexit()
90 p = __atexit; in __cxa_atexit()
91 if (p != NULL) { in __cxa_atexit()
92 if (p->ind + 1 >= p->max) in __cxa_atexit()
93 p = NULL; in __cxa_atexit()
94 else if (mprotect(p, pgsize, PROT_READ | PROT_WRITE)) in __cxa_atexit()
97 if (p == NULL) { in __cxa_atexit()
98 p = mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in __cxa_atexit()
100 if (p == MAP_FAILED) in __cxa_atexit()
[all …]
/bionic/libc/bionic/
Dfts.c56 #define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) &~ ALIGNBYTES) argument
77 FTSENT *p, *root; in fts_open() local
118 if ((p = fts_alloc(sp, *argv, len)) == NULL) in fts_open()
120 p->fts_level = FTS_ROOTLEVEL; in fts_open()
121 p->fts_parent = parent; in fts_open()
122 p->fts_accpath = p->fts_name; in fts_open()
123 p->fts_info = fts_stat(sp, p, ISSET(FTS_COMFOLLOW), -1); in fts_open()
126 if (p->fts_info == FTS_DOT) in fts_open()
127 p->fts_info = FTS_D; in fts_open()
134 p->fts_link = root; in fts_open()
[all …]
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.cpp78 char* p = reinterpret_cast<char*>(m1); in memswap() local
79 char* p_end = p + n; in memswap()
81 while (p < p_end) { in memswap()
82 char tmp = *p; in memswap()
83 *p = *q; in memswap()
85 p++; in memswap()
147 const unsigned char* p = (const unsigned char *)nptr; in strntoumax() local
148 const unsigned char* end = p + n; in strntoumax()
153 while (p < end && isspace(*p)) { in strntoumax()
154 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 …]
De_j1f.c230 const float *p,*q; in ponef() local
235 if(ix>=0x41000000) {p = pr8; q= ps8;} in ponef()
236 else if(ix>=0x409173eb){p = pr5; q= ps5;} in ponef()
237 else if(ix>=0x4036d917){p = pr3; q= ps3;} in ponef()
238 else {p = pr2; q= ps2;} /* ix>=0x40000000 */ in ponef()
240 r = p[0]+z*(p[1]+z*(p[2]+z*(p[3]+z*(p[4]+z*p[5])))); in ponef()
327 const float *p,*q; in qonef() local
332 if(ix>=0x41000000) {p = qr8; q= qs8;} in qonef()
333 else if(ix>=0x409173eb){p = qr5; q= qs5;} in qonef()
334 else if(ix>=0x4036d917){p = qr3; q= qs3;} in qonef()
[all …]
De_j1.c276 const double *p,*q; in pone() local
281 if(ix>=0x40200000) {p = pr8; q= ps8;} in pone()
282 else if(ix>=0x40122E8B){p = pr5; q= ps5;} in pone()
283 else if(ix>=0x4006DB6D){p = pr3; q= ps3;} in pone()
284 else {p = pr2; q= ps2;} /* ix>=0x40000000 */ in pone()
286 r = p[0]+z*(p[1]+z*(p[2]+z*(p[3]+z*(p[4]+z*p[5])))); in pone()
373 const double *p,*q; in qone() local
378 if(ix>=0x40200000) {p = qr8; q= qs8;} in qone()
379 else if(ix>=0x40122E8B){p = qr5; q= qs5;} in qone()
380 else if(ix>=0x4006DB6D){p = qr3; q= qs3;} in qone()
[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/upstream-netbsd/lib/libc/stdlib/
Dlcong48.c32 lcong48(unsigned short p[7]) in __weak_alias()
34 _DIAGASSERT(p != NULL); in __weak_alias()
36 __rand48_seed[0] = p[0]; in __weak_alias()
37 __rand48_seed[1] = p[1]; in __weak_alias()
38 __rand48_seed[2] = p[2]; in __weak_alias()
39 __rand48_mult[0] = p[3]; in __weak_alias()
40 __rand48_mult[1] = p[4]; in __weak_alias()
41 __rand48_mult[2] = p[5]; in __weak_alias()
42 __rand48_add = p[6]; in __weak_alias()
/bionic/libc/dns/net/
Dgetservent.c54 const char* p; in getservent_r() local
62 p = rs->servent_ptr; in getservent_r()
63 if (p == NULL) in getservent_r()
64 p = _services; in getservent_r()
65 else if (p[0] == 0) in getservent_r()
69 namelen = p[0]; in getservent_r()
71 q = p + 1 + namelen + 3; /* skip name + port + proto */ in getservent_r()
95 memcpy( rs->servent.s_name, p+1, namelen ); in getservent_r()
97 p += 1 + namelen; in getservent_r()
100 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-openbsd/lib/libc/stdlib/
Dinsque.c43 struct qelem *p = pred; in insque() local
45 if (p == NULL) in insque()
48 e->q_forw = p->q_forw; in insque()
49 e->q_back = p; in insque()
50 if (p->q_forw != NULL) in insque()
51 p->q_forw->q_back = e; in insque()
52 p->q_forw = e; in insque()
/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()
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()
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()
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()
/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/tests/
Dsys_prctl_test.cpp28 void* p = mmap(NULL, page_size * 3, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST() local
29 ASSERT_NE(MAP_FAILED, p); in TEST()
30 ASSERT_EQ(0, mprotect(p, page_size, PROT_NONE)); in TEST()
31 ASSERT_NE(-1, prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, p, page_size * 3, "anonymous map space")); in TEST()
32 volatile char* vp = reinterpret_cast<volatile char*>(p); in TEST()
35 ASSERT_EQ(0, munmap(p, page_size * 3)); in TEST()
/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.c45 void *p; in __slbexpand() local
49 if ((p = realloc(fp->_lb._base, newsize)) == NULL) in __slbexpand()
51 fp->_lb._base = p; in __slbexpand()
66 unsigned char *p; in fgetln() local
79 if ((p = memchr((void *)fp->_p, '\n', fp->_r)) != NULL) { in fgetln()
85 p++; /* advance over it */ in fgetln()
87 *lenp = len = p - fp->_p; in fgetln()
90 fp->_p = p; in fgetln()
120 if ((p = memchr((void *)fp->_p, '\n', fp->_r)) == NULL) in fgetln()
124 p++; in fgetln()
[all …]

12345