/bionic/libc/bionic/ |
D | memchr.c | 33 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()
|
D | strntoumax.c | 51 const unsigned char* p = (const unsigned char *)nptr; in strntoumax() local 52 const unsigned char* end = p + n; in strntoumax() 58 while (p < end && isspace(*p)) in strntoumax() 59 p++; in strntoumax() 62 if (p < end) { in strntoumax() 63 char c = p[0]; in strntoumax() 66 p++; in strntoumax() 71 if ( p+2 < end && p[0] == '0' && (p[1] == 'x' || p[1] == 'X') ) { in strntoumax() 72 p += 2; in strntoumax() 74 } else if ( p+1 < end && p[0] == '0' ) { in strntoumax() [all …]
|
D | fts.c | 74 FTSENT *p, *root; in fts_open() local 115 if ((p = fts_alloc(sp, *argv, len)) == NULL) in fts_open() 117 p->fts_level = FTS_ROOTLEVEL; in fts_open() 118 p->fts_parent = parent; in fts_open() 119 p->fts_accpath = p->fts_name; in fts_open() 120 p->fts_info = fts_stat(sp, p, ISSET(FTS_COMFOLLOW)); in fts_open() 123 if (p->fts_info == FTS_DOT) in fts_open() 124 p->fts_info = FTS_D; in fts_open() 131 p->fts_link = root; in fts_open() 132 root = p; in fts_open() [all …]
|
D | memswap.c | 32 char* p = m1; in memswap() local 33 char* p_end = p + n; in memswap() 36 while (p < p_end) { in memswap() 37 char tmp = *p; in memswap() 38 *p = *q; in memswap() 40 p++; in memswap()
|
D | memrchr.c | 34 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.cpp | 33 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()
|
D | __strrchr_chk.cpp | 34 extern "C" char* __strrchr_chk(const char *p, int ch, size_t s_len) in __strrchr_chk() argument 38 for (save = NULL;; ++p, s_len--) { in __strrchr_chk() 41 if (*p == (char) ch) in __strrchr_chk() 42 save = (char *)p; in __strrchr_chk() 43 if (!*p) in __strrchr_chk()
|
D | memmove.c | 34 const char *p = src; in memmove() local 39 if (__builtin_expect(((q < p) && ((size_t)(p - q) >= n)) in memmove() 40 || ((p < q) && ((size_t)(q - p) >= n)), 1)) { in memmove()
|
/bionic/libc/stdlib/ |
D | atexit.c | 64 struct atexit *p = __atexit; in __cxa_atexit() local 69 if (pgsize < (int)sizeof(*p)) in __cxa_atexit() 72 p = __atexit; in __cxa_atexit() 73 if (p != NULL) { in __cxa_atexit() 74 if (p->ind + 1 >= p->max) in __cxa_atexit() 75 p = NULL; in __cxa_atexit() 76 else if (mprotect(p, pgsize, PROT_READ | PROT_WRITE)) in __cxa_atexit() 79 if (p == NULL) { in __cxa_atexit() 80 p = mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in __cxa_atexit() 82 if (p == MAP_FAILED) in __cxa_atexit() [all …]
|
D | putenv.c | 37 char *p, *equal; in putenv() local 40 if ((p = strdup(str)) == NULL) in putenv() 42 if ((equal = strchr(p, '=')) == NULL) { in putenv() 43 (void)free(p); in putenv() 47 rval = setenv(p, equal + 1, 1); in putenv() 48 (void)free(p); in putenv()
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | e_remainderf.c | 26 __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 …]
|
D | e_remainder.c | 35 __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/libc/regex/ |
D | regcomp.c | 128 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/netbsd/net/ |
D | getservent.c | 53 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/string/ |
D | index.c | 34 index(const char *p, int ch) in index() argument 36 for (;; ++p) { in index() 37 if (*p == (char) ch) in index() 38 return((char *)p); in index() 39 if (!*p) in index()
|
/bionic/libc/upstream-freebsd/lib/libc/string/ |
D | wcspbrk.c | 42 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()
|
D | wcscspn.c | 42 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()
|
D | wcslen.c | 42 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()
|
D | wcsspn.c | 42 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()
|
D | wcsncat.c | 42 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/kernel/common/linux/ |
D | moduleparam.h | 76 #define __param_check(name, p, type) static inline type *__check_##name(void) { return(p); } argument 77 #define param_check_byte(name, p) __param_check(name, p, unsigned char) argument 79 #define param_check_short(name, p) __param_check(name, p, short) argument 80 #define param_check_ushort(name, p) __param_check(name, p, unsigned short) argument 81 #define param_check_int(name, p) __param_check(name, p, int) argument 82 #define param_check_uint(name, p) __param_check(name, p, unsigned int) argument 84 #define param_check_long(name, p) __param_check(name, p, long) argument 85 #define param_check_ulong(name, p) __param_check(name, p, unsigned long) argument 86 #define param_check_charp(name, p) __param_check(name, p, char *) argument 87 #define param_check_bool(name, p) __param_check(name, p, int) argument [all …]
|
/bionic/tests/ |
D | stdlib_test.cpp | 66 void* p; in TEST() local 68 ASSERT_EQ(0, posix_memalign(&p, 512, 128)); in TEST() 69 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(p) % 512); in TEST() 70 free(p); in TEST() 73 ASSERT_EQ(EINVAL, posix_memalign(&p, 81, 128)); in TEST() 78 char* p = realpath(NULL, NULL); in TEST() local 79 ASSERT_TRUE(p == NULL); in TEST() 85 char* p = realpath("", NULL); in TEST() local 86 ASSERT_TRUE(p == NULL); in TEST() 92 char* p = realpath("/this/directory/path/almost/certainly/does/not/exist", NULL); in TEST() local [all …]
|
/bionic/libc/upstream-freebsd/lib/libc/stdio/ |
D | fgetln.c | 57 void *p; in __slbexpand() local 64 if ((p = realloc(fp->_lb._base, newsize)) == NULL) in __slbexpand() 66 fp->_lb._base = p; in __slbexpand() 81 unsigned char *p; in fgetln() local 95 if ((p = memchr((void *)fp->_p, '\n', (size_t)fp->_r)) != NULL) { in fgetln() 103 p++; /* advance over it */ in fgetln() 105 *lenp = len = p - fp->_p; in fgetln() 108 fp->_p = p; in fgetln() 138 if ((p = memchr((void *)fp->_p, '\n', (size_t)fp->_r)) == NULL) in fgetln() 142 p++; in fgetln() [all …]
|
/bionic/libc/kernel/arch-arm/asm/arch/ |
D | serial.h | 25 #define is_omap_port(p) ({int __ret = 0; if (p == IO_ADDRESS(OMAP_UART1_BASE) || p == IO_ADDRES… argument
|
/bionic/libstdc++/src/ |
D | new.cpp | 8 void* p = malloc(size); in operator new() local 9 if (p == NULL) { in operator new() 12 return p; in operator new() 17 void* p = malloc(size); in operator new[]() local 18 if (p == NULL) { in operator new[]() 21 return p; in operator new[]()
|