/bionic/libc/bionic/ |
D | dirent.cpp | 62 #define CHECK_DIR(d) if (d == nullptr) __fortify_fatal("%s: null DIR*", __FUNCTION__) argument 70 DIR* d = reinterpret_cast<DIR*>(malloc(sizeof(DIR))); in __allocate_DIR() local 71 if (d == nullptr) { in __allocate_DIR() 74 d->fd_ = fd; in __allocate_DIR() 75 android_fdsan_exchange_owner_tag(fd, 0, __get_dir_tag(d)); in __allocate_DIR() 76 d->available_bytes_ = 0; in __allocate_DIR() 77 d->next_ = nullptr; in __allocate_DIR() 78 d->current_pos_ = 0L; in __allocate_DIR() 79 pthread_mutex_init(&d->mutex_, nullptr); in __allocate_DIR() 80 return d; in __allocate_DIR() [all …]
|
D | fpclassify.cpp | 34 extern "C" int __fpclassifyd(double d) { in __fpclassifyd() argument 35 return fpclassify(d); in __fpclassifyd() 43 extern "C" int __isinf(double d) { in __isinf() argument 44 return isinf(d); in __isinf() 53 extern "C" int __isnan(double d) { in __isnan() argument 54 return isnan(d); in __isnan() 63 extern "C" int __isfinite(double d) { in __isfinite() argument 64 return isfinite(d); in __isfinite() 73 extern "C" int __isnormal(double d) { in __isnormal() argument 74 return isnormal(d); in __isnormal()
|
D | ndk_cruft.cpp | 135 unsigned d; in digitval() local 137 d = (unsigned)(ch - '0'); in digitval() 138 if (d < 10) return (int)d; in digitval() 140 d = (unsigned)(ch - 'a'); in digitval() 141 if (d < 6) return (int)(d+10); in digitval() 143 d = (unsigned)(ch - 'A'); in digitval() 144 if (d < 6) return (int)(d+10); in digitval() 155 int d; in strntoumax() local 185 while (p < end && (d = digitval(*p)) >= 0 && d < base) { in strntoumax() 186 v = v*base + d; in strntoumax()
|
/bionic/libc/upstream-netbsd/common/lib/libc/hash/sha1/ |
D | sha1.c | 95 void do_R01(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t *e, CHAR64LONG16 *); 96 void do_R2(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t *e, CHAR64LONG16 *); 97 void do_R3(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t *e, CHAR64LONG16 *); 98 void do_R4(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t *e, CHAR64LONG16 *); 107 do_R01(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t *e, CHAR64LONG16 *block) in do_R01() argument 109 nR0(a,b,c,d,e, 0); nR0(e,a,b,c,d, 1); nR0(d,e,a,b,c, 2); nR0(c,d,e,a,b, 3); in do_R01() 110 nR0(b,c,d,e,a, 4); nR0(a,b,c,d,e, 5); nR0(e,a,b,c,d, 6); nR0(d,e,a,b,c, 7); in do_R01() 111 nR0(c,d,e,a,b, 8); nR0(b,c,d,e,a, 9); nR0(a,b,c,d,e,10); nR0(e,a,b,c,d,11); in do_R01() 112 nR0(d,e,a,b,c,12); nR0(c,d,e,a,b,13); nR0(b,c,d,e,a,14); nR0(a,b,c,d,e,15); in do_R01() 113 nR1(e,a,b,c,d,16); nR1(d,e,a,b,c,17); nR1(c,d,e,a,b,18); nR1(b,c,d,e,a,19); in do_R01() [all …]
|
/bionic/libm/ |
D | digittoint.c | 33 int d = ch - '0'; in digittoint() local 34 if ((unsigned) d < 10) { in digittoint() 35 return d; in digittoint() 37 d = ch - 'a'; in digittoint() 38 if ((unsigned) d < 6) { in digittoint() 39 return d + 10; in digittoint() 41 d = ch - 'A'; in digittoint() 42 if ((unsigned) d < 6) { in digittoint() 43 return d + 10; in digittoint()
|
/bionic/benchmarks/ |
D | math_benchmark.cpp | 31 volatile double d; variable 39 d = 0.0; in BM_math_sqrt() 42 d += sqrt(v); in BM_math_sqrt() 48 d = 0.0; in BM_math_log10() 51 d += log10(v); in BM_math_log10() 57 d = 0.0; in BM_math_logb() 60 d += logb(v); in BM_math_logb() 66 d = 0.0; in BM_math_isfinite_macro() 69 d += isfinite(v); in BM_math_isfinite_macro() 76 d = 0.0; in BM_math_isfinite() [all …]
|
/bionic/tests/ |
D | dirent_test.cpp | 189 DIR* d = fdopendir(fd); in TEST() local 190 ASSERT_TRUE(d != nullptr); in TEST() 191 dirent* e = readdir(d); in TEST() 193 ASSERT_EQ(closedir(d), 0); in TEST() 211 DIR* d = opendir("/proc/self"); in TEST() local 212 ASSERT_TRUE(d != nullptr); in TEST() 213 dirent* e = readdir(d); in TEST() 215 ASSERT_EQ(closedir(d), 0); in TEST() 219 DIR* d = nullptr; in TEST() local 220 ASSERT_EQ(closedir(d), -1); in TEST() [all …]
|
D | sys_hwprobe_test.cpp | 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() 55 return *(uint64_t const*)d; 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() 61 return *(uint64_t const*)d; 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() 67 return *(uint64_t const*)d; in vector_ldst64() 88 uint8_t* d = (uint8_t*)dst + 1; in TEST() local [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/ |
D | dtoa.c | 127 U d, d2, eps; local 153 d.d = d0; 154 if (word0(&d) & Sign_bit) { 157 word0(&d) &= ~Sign_bit; /* clear sign bit */ 164 if ((word0(&d) & Exp_mask) == Exp_mask) 166 if (word0(&d) == 0x8000) 172 if (!word1(&d) && !(word0(&d) & 0xfffff)) 179 dval(&d) += 0; /* normalize */ 181 if (!dval(&d)) { 200 b = d2b(dval(&d), &be, &bbits); [all …]
|
D | gdtoa.c | 165 U d, eps; local 206 dval(&d) = b2d(b, &i); 208 word0(&d) &= Frac_mask1; 209 word0(&d) |= Exp_11; 211 if ( (j = 11 - hi0bits(word0(&d) & Frac_mask)) !=0) 212 dval(&d) /= 1 << j; 240 ds = (dval(&d)-1.5)*0.289529654602168 + 0.1760912590558 + i*0.301029995663981; 255 dval(&d) *= 1 << j1; 256 word0(&d) += j << Exp_shift - 2 & Exp_mask; 258 word0(&d) += (be + bbits - 1) << Exp_shift; [all …]
|
/bionic/libm/upstream-freebsd/lib/msun/ld128/ |
D | s_logl.c | 457 long double d, val_hi, val_lo; in k_logl() local 509 d = x * G(i) - 1; in k_logl() 512 d = (x - H(i)) * G(i) + E(i); in k_logl() 525 d = x_hi * G(i) - 1 + x_lo * G(i); in k_logl() 551 dd = (double)d; in k_logl() 552 val_lo = d * d * d * (P3 + in k_logl() 553 d * (P4 + d * (P5 + d * (P6 + d * (P7 + d * (P8 + in k_logl() 555 dd * P14))))))))))) + (F_lo(i) + dk * ln2_lo) + d * d * P2; in k_logl() 556 val_hi = d; in k_logl() 569 long double d, d_hi, f_lo, val_hi, val_lo; in log1pl() local [all …]
|
/bionic/libm/upstream-netbsd/lib/libm/complex/ |
D | ctanl.c | 44 long double d; in ctanl() local 46 d = cosl(2.0L * creall(z)) + coshl(2.0L * cimagl(z)); in ctanl() 48 if (fabsl(d) < 0.25L) in ctanl() 49 d = _ctansl(z); in ctanl() 51 if (d == 0.0L) { in ctanl() 57 w = sinl(2.0L * creall(z)) / d + (sinhl(2.0L * cimagl(z)) / d) * I; in ctanl()
|
D | ctanhl.c | 40 long double x, y, d; in ctanhl() local 44 d = coshl(2.0L * x) + cosl(2.0L * y); in ctanhl() 45 w = sinhl(2.0L * x) / d + (sinl(2.0L * y) / d) * I; in ctanhl()
|
D | cephes_subrl.c | 93 long double d; in _ctansl() local 106 d = 0.0; in _ctansl() 116 d += t; in _ctansl() 126 d += t; in _ctansl() 127 } while (fabsl(t/d) > MACHEPL); in _ctansl() 128 return d; in _ctansl()
|
/bionic/libc/upstream-openbsd/lib/libc/string/ |
D | strncat.c | 44 char *d = dst; in strncat() local 47 while (*d != 0) in strncat() 48 d++; in strncat() 50 if ((*d = *s++) == 0) in strncat() 52 d++; in strncat() 54 *d = 0; in strncat()
|
D | stpncpy.c | 41 char *d = dst; in stpncpy() local 46 if ((*d++ = *s++) == 0) { in stpncpy() 47 dst = d - 1; in stpncpy() 50 *d++ = 0; in stpncpy()
|
D | strncpy.c | 45 char *d = dst; in strncpy() local 49 if ((*d++ = *s++) == 0) { in strncpy() 52 *d++ = 0; in strncpy()
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | math_private.h | 130 #define EXTRACT_WORDS(ix0,ix1,d) \ argument 133 ew_u.value = (d); \ 139 #define EXTRACT_WORD64(ix,d) \ argument 142 ew_u.value = (d); \ 148 #define GET_HIGH_WORD(i,d) \ argument 151 gh_u.value = (d); \ 157 #define GET_LOW_WORD(i,d) \ argument 160 gl_u.value = (d); \ 166 #define INSERT_WORDS(d,ix0,ix1) \ argument 171 (d) = iw_u.value; \ [all …]
|
D | s_lrint.c | 52 dtype d; in fn() local 55 d = (dtype)roundit(x); in fn() 59 return (d); in fn()
|
D | s_tanhl.c | 86 divl(long double a, long double b, long double c, long double d, in divl() argument 94 _2sumF(d, f); in divl() 97 inv = 1 / (d + e); in divl() 103 fw = d + e; in divl() 104 e = d - fw + e; in divl() 105 d = fw; in divl() 107 r = r + (a - d * r + b - e * r) * inv; in divl()
|
/bionic/libc/upstream-freebsd/lib/libc/string/ |
D | wcslcat.c | 53 wchar_t *d = dst; in wcslcat() local 59 while (n-- != 0 && *d != '\0') in wcslcat() 60 d++; in wcslcat() 61 dlen = d - dst; in wcslcat() 68 *d++ = *s; in wcslcat() 73 *d = '\0'; in wcslcat()
|
D | wcsncpy.c | 53 wchar_t *d = dst; in wcsncpy() local 57 if ((*d++ = *s++) == L'\0') { in wcsncpy() 60 *d++ = L'\0'; in wcsncpy()
|
/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/ |
D | b_tgamma.c | 266 double d, rhi, rlo, t, xhi, xlo; in smaller_gam() local 271 d = (t + x) * (x - t); in smaller_gam() 276 xlo += d; in smaller_gam() 279 d = 1 - x0; in smaller_gam() 280 d -= t; in smaller_gam() 281 d += x; in smaller_gam() 287 d = - x0 - t; in smaller_gam() 288 d += x; in smaller_gam() 291 r = ratfun_gam(t, d); in smaller_gam() 292 d = (float)(r.a / x); in smaller_gam() [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | recallocarray.c | 58 size_t d = oldsize - newsize; in recallocarray() local 60 if (d < oldsize / 2 && d < (size_t)getpagesize()) { in recallocarray() 61 memset((char *)ptr + newsize, 0, d); in recallocarray()
|
/bionic/linker/ |
D | linker.cpp | 1102 for (const ElfW(Dyn)* d = elf_reader.dynamic(); d->d_tag != DT_NULL; ++d) { in for_each_dt_needed() 1103 if (d->d_tag == DT_NEEDED) { in for_each_dt_needed() 1104 action(fix_dt_needed(elf_reader.get_string(d->d_un.d_val), elf_reader.name())); in for_each_dt_needed() 1283 for (const ElfW(Dyn)* d = elf_reader.dynamic(); d->d_tag != DT_NULL; ++d) { in load_library() 1284 if (d->d_tag == DT_RUNPATH) { in load_library() 1285 si->set_dt_runpath(elf_reader.get_string(d->d_un.d_val)); in load_library() 1287 if (d->d_tag == DT_SONAME) { in load_library() 1288 si->set_soname(elf_reader.get_string(d->d_un.d_val)); in load_library() 1291 if (d->d_tag == DT_FLAGS_1) { in load_library() 1292 si->set_dt_flags_1(d->d_un.d_val); in load_library() [all …]
|