/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | getsubopt.c | 48 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 …]
|
D | insque.c | 43 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/ |
D | fts.c | 75 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 …]
|
D | new.cpp | 28 void* p = malloc(size); in operator new() local 29 if (p == nullptr) { in operator new() 32 return p; in operator new() 35 void* p = malloc(size); in operator new[]() local 36 if (p == nullptr) { in operator new[]() 39 return p; in operator new[]() 52 void operator delete(void* p) noexcept { free(p); } in operator delete() argument 53 void operator delete[](void* p) noexcept { free(p); } in operator delete[]() argument 54 void operator delete(void* p, const std::nothrow_t&) noexcept { free(p); } in operator delete() argument 55 void operator delete[](void* p, const std::nothrow_t&) noexcept { free(p); } in operator delete[]() argument [all …]
|
D | ndk_cruft.cpp | 82 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 …]
|
D | elf_note.cpp | 41 ElfW(Addr) p = note_addr; in __get_elf_note() 42 ElfW(Addr) note_end = p + phdr_note->p_memsz; in __get_elf_note() 44 while (p + sizeof(ElfW(Nhdr)) <= note_end) { in __get_elf_note() 45 const ElfW(Nhdr)* note = reinterpret_cast<const ElfW(Nhdr)*>(p); in __get_elf_note() 46 p += sizeof(ElfW(Nhdr)); in __get_elf_note() 47 const char* name = reinterpret_cast<const char*>(p); in __get_elf_note() 48 p += align_up(note->n_namesz, 4); in __get_elf_note() 49 const char* desc = reinterpret_cast<const char*>(p); in __get_elf_note() 50 p += align_up(note->n_descsz, 4); in __get_elf_note() 51 if (p > note_end) { in __get_elf_note()
|
D | strtol.cpp | 47 const CharT* p = s; in StrToI() local 49 while (isspace(c = *p++)) { in StrToI() 54 c = *p++; in StrToI() 56 c = *p++; in StrToI() 60 if ((base == 0 || base == 16) && c == '0' && (*p == 'x' || *p == 'X') && isxdigit(p[1])) { in StrToI() 61 c = p[1]; in StrToI() 62 p += 2; in StrToI() 66 if ((base == 0 || base == 2) && c == '0' && (*p == 'b' || *p == 'B') && isdigit(p[1])) { in StrToI() 67 c = p[1]; in StrToI() 68 p += 2; in StrToI() [all …]
|
/bionic/libc/upstream-netbsd/lib/libc/regex/ |
D | regcomp.c | 134 static bool p_ere_exp(struct parse *p, struct branchc *bc); 135 static void p_str(struct parse *p); 136 static int p_branch_eat_delim(struct parse *p, struct branchc *bc); 137 static void p_branch_ins_offset(struct parse *p, struct branchc *bc); 138 static void p_branch_fix_tail(struct parse *p, struct branchc *bc); 139 static bool p_branch_empty(struct parse *p, struct branchc *bc); 140 static bool p_branch_do(struct parse *p, struct branchc *bc); 141 static void p_bre_pre_parse(struct parse *p, struct branchc *bc); 142 static void p_bre_post_parse(struct parse *p, struct branchc *bc); 143 static void p_re(struct parse *p, int end1, int end2); [all …]
|
/bionic/libc/kernel/uapi/linux/ |
D | swab.h | 50 static __always_inline __u16 __swab16p(const __u16 * p) { in __swab16p() argument 52 return __arch_swab16p(p); in __swab16p() 54 return __swab16(* p); in __swab16p() 57 static __always_inline __u32 __swab32p(const __u32 * p) { in __swab32p() argument 59 return __arch_swab32p(p); in __swab32p() 61 return __swab32(* p); in __swab32p() 64 static __always_inline __u64 __swab64p(const __u64 * p) { in __swab64p() argument 66 return __arch_swab64p(p); in __swab64p() 68 return __swab64(* p); in __swab64p() 71 static inline __u32 __swahw32p(const __u32 * p) { in __swahw32p() argument [all …]
|
/bionic/tests/ |
D | __cxa_demangle_test.cpp | 52 char* p = abi::__cxa_demangle("1\006ILeeeEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE", 0, 0, 0); in TEST() local 53 if (p && !strcmp(p, "\x6<-0x1.cecececececececececececececep+11983")) { in TEST() 55 } else if (p && !strcmp(p, "\x6<-0x1.cecececececececececececececep+11983L>")) { in TEST() 62 ASSERT_EQ(nullptr, p) << p; in TEST() 64 free(p); in TEST() 70 char* p = abi::__cxa_demangle("DTLeeeeeeeeeeeeeeeeeeeeeeeeeEEEEeeEEEE", 0, 0, 0); in TEST() local 71 ASSERT_EQ(nullptr, p) << p; in TEST() 72 free(p); in TEST()
|
D | sys_hwprobe_test.cpp | 41 uint64_t scalar_cast(uint8_t const* p) { in scalar_cast() argument 42 return *(uint64_t const*)p; in scalar_cast() 46 uint64_t scalar_memcpy(uint8_t const* p) { in scalar_memcpy() argument 48 __builtin_memcpy(&r, p, sizeof(r)); in scalar_memcpy() 53 uint64_t vector_memcpy(uint8_t* d, uint8_t const* p) { in vector_memcpy() argument 54 __builtin_memcpy(d, p, 16); in vector_memcpy() 59 uint64_t vector_ldst(uint8_t* d, uint8_t const* p) { in vector_ldst() argument 60 __riscv_vse8(d, __riscv_vle8_v_u8m1(p, 16), 16); in vector_ldst() 65 uint64_t vector_ldst64(uint8_t* d, uint8_t const* p) { in vector_ldst64() argument 66 __riscv_vse64((unsigned long *)d, __riscv_vle64_v_u64m1((const unsigned long *)p, 16), 16); in vector_ldst64() [all …]
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | e_remainderf.c | 26 remainderf(float x, float p) in remainderf() argument 33 GET_FLOAT_WORD(hp,p); in remainderf() 42 return nan_mix_op(x, p, *)/nan_mix_op(x, p, *); in remainderf() 45 if (hp<=0x7effffff) x = fmodf(x,p+p); /* now x < 2p */ in remainderf() 48 p = fabsf(p); in remainderf() 50 if(x+x>p) { in remainderf() 51 x-=p; in remainderf() 52 if(x+x>=p) x -= p; in remainderf() 55 p_half = (float)0.5*p; in remainderf() 57 x-=p; in remainderf() [all …]
|
D | e_remainder.c | 35 remainder(double x, double p) in remainder() argument 42 EXTRACT_WORDS(hp,lp,p); in remainder() 52 return nan_mix_op(x, p, *)/nan_mix_op(x, p, *); in remainder() 55 if (hp<=0x7fdfffff) x = fmod(x,p+p); /* now x < 2p */ in remainder() 58 p = fabs(p); in remainder() 60 if(x+x>p) { in remainder() 61 x-=p; in remainder() 62 if(x+x>=p) x -= p; in remainder() 65 p_half = 0.5*p; in remainder() 67 x-=p; in remainder() [all …]
|
D | e_j1.c | 273 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 …]
|
D | e_j1f.c | 228 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 …]
|
D | e_j0.c | 279 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 …]
|
D | e_j0f.c | 233 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 …]
|
/bionic/libc/stdio/ |
D | parsefloat.c | 41 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-netbsd/lib/libc/stdlib/ |
D | lcong48.c | 32 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/ |
D | getservent.c | 39 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/libc/upstream-openbsd/lib/libc/gdtoa/ |
D | hdtoa.c | 127 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/platform/bionic/ |
D | macros.h | 34 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* _Nonnull align_down(T* _Nonnull 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* _Nonnull align_up(T* _Nonnull 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/tests/libs/ |
D | stack_tagging_helper.cpp | 36 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/ |
D | res_cache.c | 210 _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/upstream-openbsd/lib/libc/stdio/ |
D | fgetln.c | 45 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 …]
|