Home
last modified time | relevance | path

Searched refs:d (Results 1 – 25 of 76) sorted by relevance

1234

/bionic/libm/
Ddigittoint.c33 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/libc/bionic/
Ddirent.cpp51 DIR* d = reinterpret_cast<DIR*>(malloc(sizeof(DIR))); in __allocate_DIR() local
52 if (d == NULL) { in __allocate_DIR()
55 d->fd_ = fd; in __allocate_DIR()
56 d->available_bytes_ = 0; in __allocate_DIR()
57 d->next_ = NULL; in __allocate_DIR()
58 pthread_mutex_init(&d->mutex_, NULL); in __allocate_DIR()
59 return d; in __allocate_DIR()
85 static bool __fill_DIR(DIR* d) { in __fill_DIR() argument
86 int rc = TEMP_FAILURE_RETRY(__getdents64(d->fd_, d->buff_, sizeof(d->buff_))); in __fill_DIR()
90 d->available_bytes_ = rc; in __fill_DIR()
[all …]
Dmemcmp.c35 int d = 0; in memcmp() local
38 if (d || p1 >= end1) break; in memcmp()
39 d = (int)*p1++ - (int)*p2++; in memcmp()
41 if (d || p1 >= end1) break; in memcmp()
42 d = (int)*p1++ - (int)*p2++; in memcmp()
44 if (d || p1 >= end1) break; in memcmp()
45 d = (int)*p1++ - (int)*p2++; in memcmp()
47 if (d || p1 >= end1) break; in memcmp()
48 d = (int)*p1++ - (int)*p2++; in memcmp()
50 return d; in memcmp()
Dether_aton.c37 unsigned d; in xdigit() local
38 d = (unsigned)(c-'0'); in xdigit()
39 if (d < 10) return (int)d; in xdigit()
40 d = (unsigned)(c-'a'); in xdigit()
41 if (d < 6) return (int)(10+d); in xdigit()
42 d = (unsigned)(c-'A'); in xdigit()
43 if (d < 6) return (int)(10+d); in xdigit()
Dfpclassify.cpp44 double d; member
48 int __fpclassifyd(double d) { in __fpclassifyd() argument
50 u.d = d; in __fpclassifyd()
73 int __isinf(double d) { in __isinf() argument
74 return (__fpclassifyd(d) == FP_INFINITE); in __isinf()
83 int __isnan(double d) { in __isnan() argument
84 return (__fpclassifyd(d) == FP_NAN); in __isnan()
93 int __isfinite(double d) { in __isfinite() argument
94 int type = __fpclassifyd(d); in __isfinite()
105 int __isnormal(double d) { in __isnormal() argument
[all …]
/bionic/benchmarks/
Dmath_benchmark.cpp23 double d; variable
29 d = 0.0; in BM_math_sqrt()
32 d += sqrt(v); in BM_math_sqrt()
42 d = 0.0; in BM_math_log10()
45 d += log10(v); in BM_math_log10()
55 d = 0.0; in BM_math_logb()
58 d += logb(v); in BM_math_logb()
68 d = 0.0; in BM_math_isinf_NORMAL()
71 d += (isinf)(v); in BM_math_isinf_NORMAL()
81 d = 0.0; in BM_math_isinf_NAN()
[all …]
/bionic/libc/upstream-netbsd/common/lib/libc/hash/sha1/
Dsha1.c95 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/libc/upstream-openbsd/lib/libc/string/
Dstrncat.c44 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()
Dstrlcat.c32 char *d = dst; in strlcat() local
38 while (n-- != 0 && *d != '\0') in strlcat()
39 d++; in strlcat()
40 dlen = d - dst; in strlcat()
47 *d++ = *s; in strlcat()
52 *d = '\0'; in strlcat()
Dstpncpy.c41 char *d = dst; in stpncpy() local
46 if ((*d++ = *s++) == 0) { in stpncpy()
47 dst = d - 1; in stpncpy()
50 *d++ = 0; in stpncpy()
Dstrncpy.c45 char *d = dst; in strncpy() local
49 if ((*d++ = *s++) == 0) { in strncpy()
52 *d++ = 0; in strncpy()
Dstrlcpy.c30 char *d = dst; in strlcpy() local
37 if ((*d++ = *s++) == '\0') in strlcpy()
45 *d = '\0'; /* NUL-terminate dst */ in strlcpy()
Dwcslcpy.c31 wchar_t *d = dst; in wcslcpy() local
38 if ((*d++ = *s++) == '\0') in wcslcpy()
46 *d = '\0'; /* NUL-terminate dst */ in wcslcpy()
/bionic/tests/
Ddirent_test.cpp97 DIR* d = fdopendir(fd); in TEST() local
98 ASSERT_TRUE(d != NULL); in TEST()
99 dirent* e = readdir(d); in TEST()
101 ASSERT_EQ(closedir(d), 0); in TEST()
117 DIR* d = opendir("/proc/self"); in TEST() local
118 ASSERT_TRUE(d != NULL); in TEST()
119 dirent* e = readdir(d); in TEST()
121 ASSERT_EQ(closedir(d), 0); in TEST()
125 DIR* d = NULL; in TEST() local
126 ASSERT_EQ(closedir(d), -1); in TEST()
[all …]
/bionic/libc/upstream-freebsd/lib/libc/string/
Dwcslcat.c51 wchar_t *d = dst; in wcslcat() local
57 while (*d != '\0' && n-- != 0) in wcslcat()
58 d++; in wcslcat()
59 dlen = d - dst; in wcslcat()
66 *d++ = *s; in wcslcat()
71 *d = '\0'; in wcslcat()
Dwcsncpy.c51 wchar_t *d = dst; in wcsncpy() local
55 if ((*d++ = *s++) == L'\0') { in wcsncpy()
58 *d++ = L'\0'; in wcsncpy()
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
Ddtoa.c127 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 …]
Dgdtoa.c165 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/
Ds_logl.c455 long double d, val_hi, val_lo; in k_logl() local
507 d = x * G(i) - 1; in k_logl()
510 d = (x - H(i)) * G(i) + E(i); in k_logl()
523 d = x_hi * G(i) - 1 + x_lo * G(i); in k_logl()
548 dd = (double)d; in k_logl()
549 val_lo = d * d * d * (P3 + in k_logl()
550 d * (P4 + d * (P5 + d * (P6 + d * (P7 + d * (P8 + in k_logl()
552 dd * P14))))))))))) + (F_lo(i) + dk * ln2_lo) + d * d * P2; in k_logl()
553 val_hi = d; in k_logl()
566 long double d, d_hi, f_lo, val_hi, val_lo; in log1pl() local
[all …]
/bionic/libc/arch-mips/bionic/
D_setjmp.S77 s.d $f20, SC_FPREGS+((F20-F0)*REGSZ_FP)(a0)
78 s.d $f22, SC_FPREGS+((F22-F0)*REGSZ_FP)(a0)
79 s.d $f24, SC_FPREGS+((F24-F0)*REGSZ_FP)(a0)
80 s.d $f26, SC_FPREGS+((F26-F0)*REGSZ_FP)(a0)
81 s.d $f28, SC_FPREGS+((F28-F0)*REGSZ_FP)(a0)
82 s.d $f30, SC_FPREGS+((F30-F0)*REGSZ_FP)(a0)
84 s.d $f21, SC_FPREGS+((F21-F0)*REGSZ_FP)(a0)
85 s.d $f23, SC_FPREGS+((F23-F0)*REGSZ_FP)(a0)
86 s.d $f25, SC_FPREGS+((F25-F0)*REGSZ_FP)(a0)
87 s.d $f27, SC_FPREGS+((F27-F0)*REGSZ_FP)(a0)
[all …]
Dsetjmp.S90 s.d $f20, SC_FPREGS+((F20-F0)*REGSZ_FP)(a0)
91 s.d $f22, SC_FPREGS+((F22-F0)*REGSZ_FP)(a0)
92 s.d $f24, SC_FPREGS+((F24-F0)*REGSZ_FP)(a0)
93 s.d $f26, SC_FPREGS+((F26-F0)*REGSZ_FP)(a0)
94 s.d $f28, SC_FPREGS+((F28-F0)*REGSZ_FP)(a0)
95 s.d $f30, SC_FPREGS+((F30-F0)*REGSZ_FP)(a0)
97 s.d $f21, SC_FPREGS+((F21-F0)*REGSZ_FP)(a0)
98 s.d $f23, SC_FPREGS+((F23-F0)*REGSZ_FP)(a0)
99 s.d $f25, SC_FPREGS+((F25-F0)*REGSZ_FP)(a0)
100 s.d $f27, SC_FPREGS+((F27-F0)*REGSZ_FP)(a0)
[all …]
/bionic/libc/arch-mips64/bionic/
D_setjmp.S77 s.d $f20, SC_FPREGS+((F20-F0)*REGSZ_FP)(a0)
78 s.d $f22, SC_FPREGS+((F22-F0)*REGSZ_FP)(a0)
79 s.d $f24, SC_FPREGS+((F24-F0)*REGSZ_FP)(a0)
80 s.d $f26, SC_FPREGS+((F26-F0)*REGSZ_FP)(a0)
81 s.d $f28, SC_FPREGS+((F28-F0)*REGSZ_FP)(a0)
82 s.d $f30, SC_FPREGS+((F30-F0)*REGSZ_FP)(a0)
84 s.d $f21, SC_FPREGS+((F21-F0)*REGSZ_FP)(a0)
85 s.d $f23, SC_FPREGS+((F23-F0)*REGSZ_FP)(a0)
86 s.d $f25, SC_FPREGS+((F25-F0)*REGSZ_FP)(a0)
87 s.d $f27, SC_FPREGS+((F27-F0)*REGSZ_FP)(a0)
[all …]
Dsetjmp.S90 s.d $f20, SC_FPREGS+((F20-F0)*REGSZ_FP)(a0)
91 s.d $f22, SC_FPREGS+((F22-F0)*REGSZ_FP)(a0)
92 s.d $f24, SC_FPREGS+((F24-F0)*REGSZ_FP)(a0)
93 s.d $f26, SC_FPREGS+((F26-F0)*REGSZ_FP)(a0)
94 s.d $f28, SC_FPREGS+((F28-F0)*REGSZ_FP)(a0)
95 s.d $f30, SC_FPREGS+((F30-F0)*REGSZ_FP)(a0)
97 s.d $f21, SC_FPREGS+((F21-F0)*REGSZ_FP)(a0)
98 s.d $f23, SC_FPREGS+((F23-F0)*REGSZ_FP)(a0)
99 s.d $f25, SC_FPREGS+((F25-F0)*REGSZ_FP)(a0)
100 s.d $f27, SC_FPREGS+((F27-F0)*REGSZ_FP)(a0)
[all …]
/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_lrint.c50 dtype d; in fn() local
53 d = (dtype)roundit(x); in fn()
57 return (d); in fn()
Dmath_private.h89 #define EXTRACT_WORDS(ix0,ix1,d) \ argument
92 ew_u.value = (d); \
98 #define EXTRACT_WORD64(ix,d) \ argument
101 ew_u.value = (d); \
107 #define GET_HIGH_WORD(i,d) \ argument
110 gh_u.value = (d); \
116 #define GET_LOW_WORD(i,d) \ argument
119 gl_u.value = (d); \
125 #define INSERT_WORDS(d,ix0,ix1) \ argument
130 (d) = iw_u.value; \
[all …]

1234