/bionic/libm/upstream-freebsd/lib/msun/ld128/ |
D | s_erfl.c | 196 long double ax,R,S,P,Q,s,y,z,r; in erfl() local 218 s = one+z*(qq1+z*(qq2+z*(qq3+z*(qq4+z*(qq5+z*(qq6+z*(qq7+ in erfl() 220 y = r/s; in erfl() 224 s = ax-one; in erfl() 225 P = pa0+s*(pa1+s*(pa2+s*(pa3+s*(pa4+s*(pa5+s*(pa6+s*(pa7+ in erfl() 226 s*(pa8+s*(pa9+s*(pa10+s*pa11)))))))))); in erfl() 227 Q = one+s*(qa1+s*(qa2+s*(qa3+s*(qa4+s*(qa5+s*(qa6+s*(qa7+ in erfl() 228 s*(qa8+s*(qa9+s*(qa10+s*(qa11+s*qa12))))))))))); in erfl() 234 s = one/(ax*ax); in erfl() 236 R=ra0+s*(ra1+s*(ra2+s*(ra3+s*(ra4+s*(ra5+s*(ra6+s*(ra7+ in erfl() [all …]
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | s_erf.c | 200 double R,S,P,Q,s,y,z,r; in erf() local 216 s = one+z*(qq1+z*(qq2+z*(qq3+z*(qq4+z*qq5)))); in erf() 217 y = r/s; in erf() 221 s = fabs(x)-one; in erf() 222 P = pa0+s*(pa1+s*(pa2+s*(pa3+s*(pa4+s*(pa5+s*pa6))))); in erf() 223 Q = one+s*(qa1+s*(qa2+s*(qa3+s*(qa4+s*(qa5+s*qa6))))); in erf() 230 s = one/(x*x); in erf() 232 R=ra0+s*(ra1+s*(ra2+s*(ra3+s*(ra4+s*(ra5+s*(ra6+s*ra7)))))); in erf() 233 S=one+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*(sa5+s*(sa6+s*(sa7+ in erf() 234 s*sa8))))))); in erf() [all …]
|
D | s_erff.c | 84 float R,S,P,Q,s,y,z,r; in erff() local 100 s = one+z*(qq1+z*(qq2+z*qq3)); in erff() 101 y = r/s; in erff() 105 s = fabsf(x)-one; in erff() 106 P = pa0+s*(pa1+s*(pa2+s*pa3)); in erff() 107 Q = one+s*(qa1+s*(qa2+s*qa3)); in erff() 114 s = one/(x*x); in erff() 116 R=ra0+s*(ra1+s*(ra2+s*ra3)); in erff() 117 S=one+s*(sa1+s*(sa2+s*sa3)); in erff() 119 R=rb0+s*(rb1+s*rb2); in erff() [all …]
|
D | s_nan.c | 53 _scan_nan(uint32_t *words, int num_words, const char *s) argument 61 if (s[0] == '0' && (s[1] == 'x' || s[1] == 'X')) 62 s += 2; 65 for (si = 0; isxdigit(s[si]); si++) 76 words[bitpos / 32] |= digittoint(s[si]) << (bitpos % 32); 81 nan(const char *s) argument 88 _scan_nan(u.bits, 2, s); 98 nanf(const char *s) argument 105 _scan_nan(u.bits, 1, s);
|
D | e_j0f.c | 50 float z, s,c,ss,cc,r,u,v; in __ieee754_j0f() local 58 sincosf(x, &s, &c); in __ieee754_j0f() 59 ss = s-c; in __ieee754_j0f() 60 cc = s+c; in __ieee754_j0f() 63 if ((s*c)<zero) cc = z/ss; in __ieee754_j0f() 85 s = one+z*(S01+z*(S02+z*(S03+z*S04))); in __ieee754_j0f() 87 return one + z*((r/s)-qrtr); in __ieee754_j0f() 90 return((one+u)*(one-u)+z*(r/s)); in __ieee754_j0f() 110 float z, s,c,ss,cc,u,v; in __ieee754_y0f() local 130 sincosf(x, &s, &c); in __ieee754_y0f() [all …]
|
D | e_j0.c | 88 double z, s,c,ss,cc,r,u,v; in __ieee754_j0() local 96 sincos(x, &s, &c); in __ieee754_j0() 97 ss = s-c; in __ieee754_j0() 98 cc = s+c; in __ieee754_j0() 101 if ((s*c)<zero) cc = z/ss; in __ieee754_j0() 123 s = one+z*(S01+z*(S02+z*(S03+z*S04))); in __ieee754_j0() 125 return one + z*((r/s)-qrtr); in __ieee754_j0() 128 return((one+u)*(one-u)+z*(r/s)); in __ieee754_j0() 148 double z, s,c,ss,cc,u,v; in __ieee754_y0() local 175 sincos(x, &s, &c); in __ieee754_y0() [all …]
|
D | e_j1.c | 89 double z, s,c,ss,cc,r,u,v,y; in __ieee754_j1() local 97 sincos(y, &s, &c); in __ieee754_j1() 98 ss = -s-c; in __ieee754_j1() 99 cc = s-c; in __ieee754_j1() 102 if ((s*c)>zero) cc = z/ss; in __ieee754_j1() 122 s = one+z*(s01+z*(s02+z*(s03+z*(s04+z*s05)))); in __ieee754_j1() 124 return(x*0.5+r/s); in __ieee754_j1() 145 double z, s,c,ss,cc,u,v; in __ieee754_y1() local 161 sincos(x, &s, &c); in __ieee754_y1() 162 ss = -s-c; in __ieee754_y1() [all …]
|
D | e_j1f.c | 51 float z, s,c,ss,cc,r,u,v,y; in __ieee754_j1f() local 59 sincosf(y, &s, &c); in __ieee754_j1f() 60 ss = -s-c; in __ieee754_j1f() 61 cc = s-c; in __ieee754_j1f() 64 if ((s*c)>zero) cc = z/ss; in __ieee754_j1f() 84 s = one+z*(s01+z*(s02+z*(s03+z*(s04+z*s05)))); in __ieee754_j1f() 86 return(x*(float)0.5+r/s); in __ieee754_j1f() 107 float z, s,c,ss,cc,u,v; in __ieee754_y1f() local 116 sincosf(x, &s, &c); in __ieee754_y1f() 117 ss = -s-c; in __ieee754_y1f() [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/ |
D | hdtoa.c | 51 char *s; in roundup() local 53 for (s = s0 + ndigits - 1; *s == 0xf; s--) { in roundup() 54 if (s == s0) { in roundup() 55 *s = 1; in roundup() 58 *s = 0; in roundup() 60 ++*s; in roundup() 128 char *s, *s0; in __hdtoa() local 176 for (s = s0 + bufsize - 1; s > s0 + sigfigs - 1; s--) in __hdtoa() 177 *s = 0; in __hdtoa() 178 for (; s > s0 + sigfigs - (DBL_FRACLBITS / 4) - 1 && s > s0; s--) { in __hdtoa() [all …]
|
D | hexnan.c | 61 CONST char *s; local 73 s = *sp; 75 while((c = *(CONST unsigned char*)(s+1)) && c <= ' ') 76 ++s; 77 if (s[1] == '0' && (s[2] == 'x' || s[2] == 'X') 78 && *(CONST unsigned char*)(s+3) > ' ') 79 s += 2; 80 while((c = *(CONST unsigned char*)++s)) { 95 while(*(CONST unsigned char*)(s+1) <= ' ') 96 ++s; [all …]
|
D | gethex.c | 47 CONST unsigned char *decpt, *s0, *s, *s1; local 74 s = s0; 78 if (hexdig[*s]) 84 if (s[i] != decimalpoint[i]) 87 decpt = s += i; 89 if (*s != '.') 91 decpt = ++s; 93 if (!hexdig[*s]) 95 while(*s == '0') 96 s++; [all …]
|
/bionic/libc/bionic/ |
D | strtol.cpp | 47 const char* s = nptr; in StrToI() local 50 c = *s++; in StrToI() 55 c = *s++; in StrToI() 58 if (c == '+') c = *s++; in StrToI() 60 if ((base == 0 || base == 16) && c == '0' && (*s == 'x' || *s == 'X') && isxdigit(s[1])) { in StrToI() 61 c = s[1]; in StrToI() 62 s += 2; in StrToI() 74 for (; ; c = *s++) { in StrToI() 94 if (endptr != nullptr) *endptr = const_cast<char*>(any ? s - 1 : nptr); in StrToI() 113 const char* s = nptr; in StrToU() local [all …]
|
D | stdlib_l.cpp | 32 double strtod_l(const char* s, char** end_ptr, locale_t) { in strtod_l() argument 33 return strtod(s, end_ptr); in strtod_l() 36 float strtof_l(const char* s, char** end_ptr, locale_t) { in strtof_l() argument 37 return strtof(s, end_ptr); in strtof_l() 40 long strtol_l(const char* s, char** end_ptr, int base, locale_t) { in strtol_l() argument 41 return strtol(s, end_ptr, base); in strtol_l() 44 long double strtold_l(const char* s, char** end_ptr, locale_t) { in strtold_l() argument 45 return strtold(s, end_ptr); in strtold_l() 48 long long strtoll_l(const char* s, char** end_ptr, int base, locale_t) { in strtoll_l() argument 49 return strtoll(s, end_ptr, base); in strtoll_l() [all …]
|
D | wchar_l.cpp | 52 double wcstod_l(const wchar_t* s, wchar_t** end_ptr, locale_t) { in wcstod_l() argument 53 return wcstod(s, end_ptr); in wcstod_l() 56 float wcstof_l(const wchar_t* s, wchar_t** end_ptr, locale_t) { in wcstof_l() argument 57 return wcstof(s, end_ptr); in wcstof_l() 60 long wcstol_l(const wchar_t* s, wchar_t** end_ptr, int base, locale_t) { in wcstol_l() argument 61 return wcstol(s, end_ptr, base); in wcstol_l() 64 long long wcstoll_l(const wchar_t* s, wchar_t** end_ptr, int base, locale_t) { in wcstoll_l() argument 65 return wcstoll(s, end_ptr, base); in wcstoll_l() 68 unsigned long wcstoul_l(const wchar_t* s, wchar_t** end_ptr, int base, locale_t) { in wcstoul_l() argument 69 return wcstoul(s, end_ptr, base); in wcstoul_l() [all …]
|
D | pathconf.cpp | 35 static long __filesizebits(const struct statfs& s) { in __filesizebits() argument 36 switch (s.f_type) { in __filesizebits() 46 static long __link_max(const struct statfs& s) { in __link_max() argument 49 switch (s.f_type) { in __link_max() 64 static long __2_symlinks(const struct statfs& s) { in __2_symlinks() argument 65 switch (s.f_type) { in __2_symlinks() 77 static long __pathconf(const struct statfs& s, int name) { in __pathconf() argument 80 return __filesizebits(s); in __pathconf() 83 return __link_max(s); in __pathconf() 92 return s.f_namelen; in __pathconf() [all …]
|
/bionic/tests/ |
D | semaphore_test.cpp | 30 sem_t s; in TEST() local 33 ASSERT_EQ(0, sem_init(&s, 0, 0)); in TEST() 34 ASSERT_EQ(0, sem_init(&s, 0, 1)); in TEST() 35 ASSERT_EQ(0, sem_init(&s, 0, 123)); in TEST() 39 ASSERT_EQ(-1, sem_init(&s, 0, -1)); in TEST() 45 ASSERT_EQ(0, sem_init(&s, 0, SEM_VALUE_MAX)); in TEST() 49 ASSERT_EQ(-1, sem_init(&s, 0, SEM_VALUE_MAX + 1)); in TEST() 52 ASSERT_EQ(0, sem_destroy(&s)); in TEST() 56 sem_t s; in TEST() local 57 ASSERT_EQ(0, sem_init(&s, 0, 3)); in TEST() [all …]
|
D | netdb_test.cpp | 338 servent* s = getservbyname("smtp", nullptr); in TEST() local 339 ASSERT_TRUE(s != nullptr); in TEST() 340 ASSERT_STREQ("smtp", s->s_name); in TEST() 341 ASSERT_EQ(25, ntohs(s->s_port)); in TEST() 342 ASSERT_STREQ("tcp", s->s_proto); in TEST() 345 s = getservbyname("smtp", "tcp"); in TEST() 346 ASSERT_TRUE(s != nullptr); in TEST() 347 ASSERT_STREQ("smtp", s->s_name); in TEST() 348 ASSERT_EQ(25, ntohs(s->s_port)); in TEST() 349 ASSERT_STREQ("tcp", s->s_proto); in TEST() [all …]
|
/bionic/libc/include/bits/ |
D | termios_inlines.h | 48 static __inline speed_t cfgetspeed(const struct termios* s) { in cfgetspeed() argument 49 return __BIONIC_CAST(static_cast, speed_t, s->c_cflag & CBAUD); in cfgetspeed() 52 __BIONIC_TERMIOS_INLINE speed_t cfgetispeed(const struct termios* s) { in cfgetispeed() argument 53 return cfgetspeed(s); in cfgetispeed() 56 __BIONIC_TERMIOS_INLINE speed_t cfgetospeed(const struct termios* s) { in cfgetospeed() argument 57 return cfgetspeed(s); in cfgetospeed() 60 __BIONIC_TERMIOS_INLINE void cfmakeraw(struct termios* s) { in cfmakeraw() argument 61 s->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); in cfmakeraw() 62 s->c_oflag &= ~OPOST; in cfmakeraw() 63 s->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); in cfmakeraw() [all …]
|
/bionic/libc/include/bits/fortify/ |
D | string.h | 122 void* memset(void* const s __pass_object_size0, int c, size_t n) __overloadable in memset() 126 return __builtin___memset_chk(s, c, n, __bos0(s)); in memset() 128 return __builtin_memset(s, c, n); in memset() 134 void* memchr(const void* const s __pass_object_size, int c, size_t n) __overloadable { in memchr() 135 size_t bos = __bos(s); in memchr() 138 return __builtin_memchr(s, c, n); in memchr() 141 return __memchr_chk(s, c, n, bos); in memchr() 145 void* __memrchr_fortify(const void* const __pass_object_size s, int c, size_t n) __overloadable { in __memrchr_fortify() argument 146 size_t bos = __bos(s); in __memrchr_fortify() 149 return __memrchr_real(s, c, n); in __memrchr_fortify() [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/string/ |
D | strtok.c | 33 strtok(char *s, const char *delim) in strtok() argument 37 return strtok_r(s, delim, &last); in strtok() 42 strtok_r(char *s, const char *delim, char **last) in strtok_r() argument 48 if (s == NULL && (s = *last) == NULL) in strtok_r() 55 c = *s++; in strtok_r() 65 tok = s - 1; in strtok_r() 72 c = *s++; in strtok_r() 77 s = NULL; in strtok_r() 79 s[-1] = '\0'; in strtok_r() 80 *last = s; in strtok_r()
|
/bionic/libc/upstream-openbsd/lib/libc/locale/ |
D | _wcstoul.h | 50 const wchar_t *s; in FUNCNAME() local 66 s = nptr; in FUNCNAME() 68 wc = (wchar_t) *s++; in FUNCNAME() 72 wc = *s++; in FUNCNAME() 76 wc = *s++; in FUNCNAME() 79 wc == L'0' && (*s == L'x' || *s == L'X')) { in FUNCNAME() 80 wc = s[1]; in FUNCNAME() 81 s += 2; in FUNCNAME() 92 for (acc = 0, any = 0;; wc = (wchar_t) *s++) { in FUNCNAME() 113 *endptr = (wchar_t *)(any ? s - 1 : nptr); in FUNCNAME()
|
D | _wcstol.h | 51 const wchar_t *s; in FUNCNAME() local 68 s = nptr; in FUNCNAME() 70 wc = (wchar_t) *s++; in FUNCNAME() 74 wc = *s++; in FUNCNAME() 78 wc = *s++; in FUNCNAME() 81 wc == L'0' && (*s == L'x' || *s == L'X')) { in FUNCNAME() 82 wc = s[1]; in FUNCNAME() 83 s += 2; in FUNCNAME() 102 for (acc = 0, any = 0;; wc = (wchar_t) *s++) { in FUNCNAME() 133 *endptr = (wchar_t *)(any ? s - 1 : nptr); in FUNCNAME()
|
/bionic/libc/upstream-freebsd/lib/libc/string/ |
D | wcstok.c | 43 wcstok(wchar_t * __restrict s, const wchar_t * __restrict delim, in wcstok() argument 50 if (s == NULL && (s = *last) == NULL) in wcstok() 57 c = *s++; in wcstok() 67 tok = s - 1; in wcstok() 74 c = *s++; in wcstok() 79 s = NULL; in wcstok() 81 s[-1] = L'\0'; in wcstok() 82 *last = s; in wcstok()
|
/bionic/libc/kernel/uapi/linux/ |
D | vboxguest.h | 55 #define VBG_IOCTL_VMMDEV_REQUEST(s) _IOC(_IOC_READ | _IOC_WRITE, 'V', 2, s) argument 87 #define VBG_IOCTL_HGCM_CALL_32(s) _IOC(_IOC_READ | _IOC_WRITE, 'V', 6, s) argument 88 #define VBG_IOCTL_HGCM_CALL_64(s) _IOC(_IOC_READ | _IOC_WRITE, 'V', 7, s) argument 90 #define VBG_IOCTL_HGCM_CALL(s) VBG_IOCTL_HGCM_CALL_64(s) argument 92 #define VBG_IOCTL_HGCM_CALL(s) VBG_IOCTL_HGCM_CALL_32(s) argument 102 #define VBG_IOCTL_LOG(s) _IOC(_IOC_READ | _IOC_WRITE, 'V', 9, s) argument
|
/bionic/libc/include/ |
D | string.h | 155 void* __bionic_memchr(const void* const s __pass_object_size, int c, size_t n) { in __bionic_memchr() 156 return memchr(s, c, n); in __bionic_memchr() 160 const void* memchr(const void* const s __pass_object_size, int c, size_t n) in memchr() 162 return __bionic_memchr(s, c, n); in memchr() 166 void* memchr(void* const s __pass_object_size, int c, size_t n) __prefer_this_overload { in memchr() 167 return __bionic_memchr(s, c, n); in memchr() 171 char* __bionic_strchr(const char* const s __pass_object_size, int c) { in __bionic_strchr() 172 return strchr(s, c); in __bionic_strchr() 176 const char* strchr(const char* const s __pass_object_size, int c) in strchr() 178 return __bionic_strchr(s, c); in strchr() [all …]
|