Home
last modified time | relevance | path

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

1234567

/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Dgetsubopt.c48 char *p; in getsubopt() local
56 for (p = *optionp; *p && (*p == ',' || *p == ' ' || *p == '\t'); ++p); in getsubopt()
58 if (!*p) { in getsubopt()
59 *optionp = p; in getsubopt()
64 for (suboptarg = p; in getsubopt()
65 *++p && *p != ',' && *p != '=' && *p != ' ' && *p != '\t';); in getsubopt()
67 if (*p) { in getsubopt()
73 if (*p == '=') { in getsubopt()
74 *p = '\0'; in getsubopt()
75 for (*valuep = ++p; in getsubopt()
[all …]
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/bionic/
Dfts.c75 FTSENT *p, *root; in __fts_open() local
111 if ((p = fts_alloc(sp, *argv, strlen(*argv))) == NULL) in __fts_open()
113 p->fts_level = FTS_ROOTLEVEL; in __fts_open()
114 p->fts_parent = parent; in __fts_open()
115 p->fts_accpath = p->fts_name; in __fts_open()
116 p->fts_info = fts_stat(sp, p, ISSET(FTS_COMFOLLOW), -1); in __fts_open()
119 if ((options & FTS_FOR_FTW) != 0 && p->fts_info == FTS_NS) goto mem3; in __fts_open()
122 if (p->fts_info == FTS_DOT) in __fts_open()
123 p->fts_info = FTS_D; in __fts_open()
130 p->fts_link = root; in __fts_open()
[all …]
Dndk_cruft.cpp82 char* p = reinterpret_cast<char*>(m1); in memswap() local
83 char* p_end = p + n; in memswap()
85 while (p < p_end) { in memswap()
86 char tmp = *p; in memswap()
87 *p = *q; in memswap()
89 p++; in memswap()
151 const unsigned char* p = (const unsigned char *)nptr; in strntoumax() local
152 const unsigned char* end = p + n; in strntoumax()
157 while (p < end && isspace(*p)) { in strntoumax()
158 p++; in strntoumax()
[all …]
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregcomp.c136 static bool p_ere_exp(struct parse *p, struct branchc *bc);
137 static void p_str(struct parse *p);
138 static int p_branch_eat_delim(struct parse *p, struct branchc *bc);
139 static void p_branch_ins_offset(struct parse *p, struct branchc *bc);
140 static void p_branch_fix_tail(struct parse *p, struct branchc *bc);
141 static bool p_branch_empty(struct parse *p, struct branchc *bc);
142 static bool p_branch_do(struct parse *p, struct branchc *bc);
143 static void p_bre_pre_parse(struct parse *p, struct branchc *bc);
144 static void p_bre_post_parse(struct parse *p, struct branchc *bc);
145 static void p_re(struct parse *p, int end1, int end2);
[all …]
/bionic/libc/kernel/uapi/linux/
Dswab.h62 static __always_inline __u16 __swab16p(const __u16 * p) { in __swab16p() argument
64 return __arch_swab16p(p); in __swab16p()
66 return __swab16(* p); in __swab16p()
69 static __always_inline __u32 __swab32p(const __u32 * p) { in __swab32p() argument
71 return __arch_swab32p(p); in __swab32p()
73 return __swab32(* p); in __swab32p()
76 static __always_inline __u64 __swab64p(const __u64 * p) { in __swab64p() argument
78 return __arch_swab64p(p); in __swab64p()
80 return __swab64(* p); in __swab64p()
83 static inline __u32 __swahw32p(const __u32 * p) { in __swahw32p() argument
[all …]
/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()
42 return nan_mix_op(x, p, *)/nan_mix_op(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()
57 x-=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()
52 return nan_mix_op(x, p, *)/nan_mix_op(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()
67 x-=p; in __ieee754_remainder()
[all …]
De_j1f.c228 const float *p,*q; in ponef() local
233 if(ix>=0x41000000) {p = pr8; q= ps8;} in ponef()
234 else if(ix>=0x409173eb){p = pr5; q= ps5;} in ponef()
235 else if(ix>=0x4036d917){p = pr3; q= ps3;} in ponef()
236 else {p = pr2; q= ps2;} /* ix>=0x40000000 */ in ponef()
238 r = p[0]+z*(p[1]+z*(p[2]+z*(p[3]+z*(p[4]+z*p[5])))); in ponef()
325 const float *p,*q; in qonef() local
330 if(ix>=0x41000000) {p = qr8; q= qs8;} in qonef()
331 else if(ix>=0x409173eb){p = qr5; q= qs5;} in qonef()
332 else if(ix>=0x4036d917){p = qr3; q= qs3;} in qonef()
[all …]
De_j1.c273 const double *p,*q; in pone() local
278 if(ix>=0x40200000) {p = pr8; q= ps8;} in pone()
279 else if(ix>=0x40122E8B){p = pr5; q= ps5;} in pone()
280 else if(ix>=0x4006DB6D){p = pr3; q= ps3;} in pone()
281 else {p = pr2; q= ps2;} /* ix>=0x40000000 */ in pone()
283 r = p[0]+z*(p[1]+z*(p[2]+z*(p[3]+z*(p[4]+z*p[5])))); in pone()
370 const double *p,*q; in qone() local
375 if(ix>=0x40200000) {p = qr8; q= qs8;} in qone()
376 else if(ix>=0x40122E8B){p = qr5; q= qs5;} in qone()
377 else if(ix>=0x4006DB6D){p = qr3; q= qs3;} in qone()
[all …]
De_j0f.c233 const float *p,*q; in pzerof() local
238 if(ix>=0x41000000) {p = pR8; q= pS8;} in pzerof()
239 else if(ix>=0x409173eb){p = pR5; q= pS5;} in pzerof()
240 else if(ix>=0x4036d917){p = pR3; q= pS3;} in pzerof()
241 else {p = pR2; q= pS2;} /* ix>=0x40000000 */ in pzerof()
243 r = p[0]+z*(p[1]+z*(p[2]+z*(p[3]+z*(p[4]+z*p[5])))); in pzerof()
330 const float *p,*q; in qzerof() local
335 if(ix>=0x41000000) {p = qR8; q= qS8;} in qzerof()
336 else if(ix>=0x409173eb){p = qR5; q= qS5;} in qzerof()
337 else if(ix>=0x4036d917){p = qR3; q= qS3;} in qzerof()
[all …]
De_j0.c279 const double *p,*q; in pzero() local
284 if(ix>=0x40200000) {p = pR8; q= pS8;} in pzero()
285 else if(ix>=0x40122E8B){p = pR5; q= pS5;} in pzero()
286 else if(ix>=0x4006DB6D){p = pR3; q= pS3;} in pzero()
287 else {p = pR2; q= pS2;} /* ix>=0x40000000 */ in pzero()
289 r = p[0]+z*(p[1]+z*(p[2]+z*(p[3]+z*(p[4]+z*p[5])))); in pzero()
376 const double *p,*q; in qzero() local
381 if(ix>=0x40200000) {p = qR8; q= qS8;} in qzero()
382 else if(ix>=0x40122E8B){p = qR5; q= qS5;} in qzero()
383 else if(ix>=0x4006DB6D){p = qR3; q= qS3;} in qzero()
[all …]
/bionic/libc/stdio/
Dparsefloat.c41 char *commit, *p; in parsefloat() local
60 for (p = buf; p < end; ) { in parsefloat()
74 commit = p; in parsefloat()
95 commit = p; /* inf or infinity */ in parsefloat()
110 commit = p; in parsefloat()
118 commit = p; in parsefloat()
144 commit = p; in parsefloat()
154 commit = p; in parsefloat()
167 commit = p; in parsefloat()
174 *p++ = c; in parsefloat()
[all …]
/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-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.c39 const char* p; in getservent_r() local
47 p = rs->servent_ptr; in getservent_r()
48 if (p == NULL) in getservent_r()
49 p = _services; in getservent_r()
50 else if (p[0] == 0) in getservent_r()
54 namelen = p[0]; in getservent_r()
56 q = p + 1 + namelen + 3; /* skip name + port + proto */ in getservent_r()
80 memcpy( rs->servent.s_name, p+1, namelen ); in getservent_r()
82 p += 1 + namelen; in getservent_r()
85 port = ((((unsigned char*)p)[0] << 8) | in getservent_r()
[all …]
/bionic/tests/libs/
Dstack_tagging_helper.cpp36 static inline void mte_set_tag(T* p) { in mte_set_tag() argument
41 : [Ptr] "r"(p) in mte_set_tag()
46 static inline T* mte_get_tag(T* p) { in mte_get_tag() argument
50 : [Ptr] "+r"(p) in mte_get_tag()
53 return p; in mte_get_tag()
57 static inline T* mte_increment_tag(T* p) { in mte_increment_tag() argument
63 : [Ptr] "r"(p) in mte_increment_tag()
104 for (char* p = buf; p < buf + sizeof(buf) / 2; p += 16) { in vfork_child() local
105 char* q = mte_increment_tag(p); in vfork_child()
107 CHECK(mte_get_tag(p) == q); in vfork_child()
[all …]
/bionic/libc/dns/resolv/
Dres_cache.c210 _bprint_c( char* p, char* end, int c ) in _bprint_c() argument
212 if (p < end) { in _bprint_c()
213 if (p+1 == end) in _bprint_c()
214 *p++ = 0; in _bprint_c()
216 *p++ = (char) c; in _bprint_c()
217 *p = 0; in _bprint_c()
220 return p; in _bprint_c()
225 _bprint_b( char* p, char* end, const char* buf, int len ) in _bprint_b() argument
227 int avail = end - p; in _bprint_b()
230 return p; in _bprint_b()
[all …]
/bionic/libc/platform/bionic/
Dmacros.h34 static constexpr uintptr_t align_down(uintptr_t p, size_t align) { in align_down() argument
35 return p & ~(align - 1); in align_down()
38 static constexpr uintptr_t align_up(uintptr_t p, size_t align) { in align_up() argument
39 return (p + align - 1) & ~(align - 1); in align_up()
43 static inline T* align_down(T* p, size_t align) { in align_down() argument
44 return reinterpret_cast<T*>(align_down(reinterpret_cast<uintptr_t>(p), align)); in align_down()
48 static inline T* align_up(T* p, size_t align) { in align_up() argument
49 return reinterpret_cast<T*>(align_up(reinterpret_cast<uintptr_t>(p), align)); in align_up()
88 static inline uintptr_t untag_address(uintptr_t p) { in untag_address() argument
90 return p & ((1ULL << 56) - 1); in untag_address()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfgetln.c45 void *p; in __slbexpand() local
49 if ((p = recallocarray(fp->_lb._base, fp->_lb._size, newsize, 1)) == NULL) in __slbexpand()
51 fp->_lb._base = p; in __slbexpand()
66 unsigned char *p; in fgetln() local
79 if ((p = memchr(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()
122 if ((p = memchr(fp->_p, '\n', fp->_r)) == NULL) in fgetln()
126 p++; in fgetln()
[all …]
Dungetc.c50 unsigned char *p; in __submore() local
56 if ((p = malloc(BUFSIZ)) == NULL) in __submore()
58 _UB(fp)._base = p; in __submore()
60 p += BUFSIZ - sizeof(fp->_ubuf); in __submore()
62 p[i] = fp->_ubuf[i]; in __submore()
63 fp->_p = p; in __submore()
67 p = reallocarray(_UB(fp)._base, i, 2); in __submore()
68 if (p == NULL) in __submore()
71 (void)memcpy(p + i, p, i); in __submore()
72 fp->_p = p + i; in __submore()
[all …]
/bionic/tests/
D__cxa_demangle_test.cpp34 char* p = abi::__cxa_demangle("1\006ILeeeEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE", 0, 0, 0); in TEST() local
35 ASSERT_STREQ("\x6<-0x1.cecececececececececececececep+11983", p); in TEST()
36 free(p); in TEST()
42 char* p = abi::__cxa_demangle("DTLeeeeeeeeeeeeeeeeeeeeeeeeeEEEEeeEEEE", 0, 0, 0); in TEST() local
43 ASSERT_EQ(nullptr, p) << p; in TEST()
44 free(p); in TEST()
Dthread_local_test.cpp32 static void* inc_shared_var(void* p) { in inc_shared_var() argument
33 int *data = reinterpret_cast<int*>(p); in inc_shared_var()
39 static void* inc_local_var(void* p) { in inc_local_var() argument
40 int *data = reinterpret_cast<int*>(p); in inc_local_var()
112 static void* move_shared_triangle(void* p) { in move_shared_triangle() argument
113 int *data = reinterpret_cast<int*>(p); in move_shared_triangle()
119 static void* move_local_triangle(void* p) { in move_local_triangle() argument
120 int *data = reinterpret_cast<int*>(p); in move_local_triangle()
221 void* p = __emutls_get_address(&tls_var[n]); in TEST() local
222 saved_p[n] = p; in TEST()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrstr.c69 size_t l, ip, jp, k, p, ms, p0, mem, mem0; in twoway_strstr() local
79 ip = -1; jp = 0; k = p = 1; in twoway_strstr()
82 if (k == p) { in twoway_strstr()
83 jp += p; in twoway_strstr()
89 p = jp - ip; in twoway_strstr()
92 k = p = 1; in twoway_strstr()
96 p0 = p; in twoway_strstr()
99 ip = -1; jp = 0; k = p = 1; in twoway_strstr()
102 if (k == p) { in twoway_strstr()
103 jp += p; in twoway_strstr()
[all …]
Dmemmem.c72 size_t i, ip, jp, k, p, ms, p0, mem, mem0; in twoway_memmem() local
81 ip = -1; jp = 0; k = p = 1; in twoway_memmem()
84 if (k == p) { in twoway_memmem()
85 jp += p; in twoway_memmem()
91 p = jp - ip; in twoway_memmem()
94 k = p = 1; in twoway_memmem()
98 p0 = p; in twoway_memmem()
101 ip = -1; jp = 0; k = p = 1; in twoway_memmem()
104 if (k == p) { in twoway_memmem()
105 jp += p; in twoway_memmem()
[all …]

1234567