/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_sinpi.c | 82 double ax, hi, lo, s; in sinpi() local 102 s = (pi_lo + pi_hi) * lo + pi_lo * hi + in sinpi() 104 return (s * 0x1p-53); in sinpi() 107 s = __kernel_sinpi(ax); in sinpi() 108 return ((hx & 0x80000000) ? -s : s); in sinpi() 112 s = __kernel_cospi(0.5 - ax); in sinpi() 114 s = __kernel_cospi(ax - 0.5); in sinpi() 116 s = __kernel_sinpi(1 - ax); in sinpi() 117 return ((hx & 0x80000000) ? -s : s); in sinpi() 126 s = 0; in sinpi() [all …]
|
D | s_nan.c | 53 _scan_nan(uint32_t *words, int num_words, const char *s) in _scan_nan() argument 61 if (s[0] == '0' && (s[1] == 'x' || s[1] == 'X')) in _scan_nan() 62 s += 2; in _scan_nan() 65 for (si = 0; isxdigit(s[si]); si++) in _scan_nan() 73 words[bitpos / 32] |= digittoint(s[si]) << (bitpos % 32); in _scan_nan() 76 digittoint(s[si]) << (bitpos % 32); in _scan_nan() 82 nan(const char *s) in nan() argument 89 _scan_nan(u.bits, 2, s); in nan() 99 nanf(const char *s) in nanf() argument 106 _scan_nan(u.bits, 1, s); in nanf()
|
D | e_j1.c | 89 double z, s,c,ss,cc,r,u,v,y; in j1() local 97 sincos(y, &s, &c); in j1() 98 ss = -s-c; in j1() 99 cc = s-c; in j1() 102 if ((s*c)>zero) cc = z/ss; in j1() 122 s = one+z*(s01+z*(s02+z*(s03+z*(s04+z*s05)))); in j1() 124 return(x*0.5+r/s); in j1() 145 double z, s,c,ss,cc,u,v; in y1() local 161 sincos(x, &s, &c); in y1() 162 ss = -s-c; in y1() [all …]
|
D | e_j1f.c | 51 float z, s,c,ss,cc,r,u,v,y; in j1f() local 59 sincosf(y, &s, &c); in j1f() 60 ss = -s-c; in j1f() 61 cc = s-c; in j1f() 64 if ((s*c)>zero) cc = z/ss; in j1f() 84 s = one+z*(s01+z*(s02+z*(s03+z*(s04+z*s05)))); in j1f() 86 return(x*(float)0.5+r/s); in j1f() 107 float z, s,c,ss,cc,u,v; in y1f() local 116 sincosf(x, &s, &c); in y1f() 117 ss = -s-c; in y1f() [all …]
|
D | e_j0f.c | 50 float z, s,c,ss,cc,r,u,v; in j0f() local 58 sincosf(x, &s, &c); in j0f() 59 ss = s-c; in j0f() 60 cc = s+c; in j0f() 63 if ((s*c)<zero) cc = z/ss; in j0f() 85 s = one+z*(S01+z*(S02+z*(S03+z*S04))); in j0f() 87 return one + z*((r/s)-qrtr); in j0f() 90 return((one+u)*(one-u)+z*(r/s)); in j0f() 110 float z, s,c,ss,cc,u,v; in y0f() local 130 sincosf(x, &s, &c); in y0f() [all …]
|
D | e_j0.c | 88 double z, s,c,ss,cc,r,u,v; in j0() local 96 sincos(x, &s, &c); in j0() 97 ss = s-c; in j0() 98 cc = s+c; in j0() 101 if ((s*c)<zero) cc = z/ss; in j0() 123 s = one+z*(S01+z*(S02+z*(S03+z*S04))); in j0() 125 return one + z*((r/s)-qrtr); in j0() 128 return((one+u)*(one-u)+z*(r/s)); in j0() 148 double z, s,c,ss,cc,u,v; in y0() local 175 sincos(x, &s, &c); in y0() [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/tests/ |
D | semaphore_test.cpp | 36 sem_t s; in TEST() local 39 ASSERT_EQ(0, sem_init(&s, 0, 0)); in TEST() 40 ASSERT_EQ(0, sem_init(&s, 0, 1)); in TEST() 41 ASSERT_EQ(0, sem_init(&s, 0, 123)); in TEST() 45 ASSERT_EQ(-1, sem_init(&s, 0, -1)); in TEST() 51 ASSERT_EQ(0, sem_init(&s, 0, SEM_VALUE_MAX)); in TEST() 55 ASSERT_EQ(-1, sem_init(&s, 0, static_cast<unsigned>(SEM_VALUE_MAX) + 1)); in TEST() 58 ASSERT_EQ(0, sem_destroy(&s)); in TEST() 62 sem_t s; in TEST() local 63 ASSERT_EQ(0, sem_init(&s, 0, 3)); in TEST() [all …]
|
/bionic/libc/bionic/ |
D | strtol.cpp | 38 __attribute__((always_inline)) T StrToI(const CharT* s, CharT** end_ptr, int base) { in StrToI() argument 41 if (end_ptr != nullptr) *end_ptr = const_cast<CharT*>(s); in StrToI() 47 const CharT* p = s; in StrToI() 104 if (end_ptr != nullptr) *end_ptr = const_cast<CharT*>(any ? p - 1 : s); in StrToI() 122 int atoi(const char* s) { in atoi() argument 123 return strtol(s, nullptr, 10); in atoi() 126 long atol(const char* s) { in atol() argument 127 return strtol(s, nullptr, 10); in atol() 130 long long atoll(const char* s) { in atoll() argument 131 return strtoll(s, nullptr, 10); in atoll() [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 | 44 double wcstod_l(const wchar_t* s, wchar_t** end_ptr, locale_t) { in wcstod_l() argument 45 return wcstod(s, end_ptr); in wcstod_l() 48 float wcstof_l(const wchar_t* s, wchar_t** end_ptr, locale_t) { in wcstof_l() argument 49 return wcstof(s, end_ptr); in wcstof_l() 52 long wcstol_l(const wchar_t* s, wchar_t** end_ptr, int base, locale_t) { in wcstol_l() argument 53 return wcstol(s, end_ptr, base); in wcstol_l() 56 long long wcstoll_l(const wchar_t* s, wchar_t** end_ptr, int base, locale_t) { in wcstoll_l() argument 57 return wcstoll(s, end_ptr, base); in wcstoll_l() 60 unsigned long wcstoul_l(const wchar_t* s, wchar_t** end_ptr, int base, locale_t) { in wcstoul_l() argument 61 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/libc/include/bits/ |
D | termios_inlines.h | 48 static __inline speed_t cfgetspeed(const struct termios* _Nonnull 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* _Nonnull s) { in cfgetispeed() argument 53 return cfgetspeed(s); in cfgetispeed() 56 __BIONIC_TERMIOS_INLINE speed_t cfgetospeed(const struct termios* _Nonnull s) { in cfgetospeed() argument 57 return cfgetspeed(s); in cfgetospeed() 60 __BIONIC_TERMIOS_INLINE void cfmakeraw(struct termios* _Nonnull 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/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()
|
D | strsep.c | 48 char *s; in strsep() local 53 if ((s = *stringp) == NULL) in strsep() 55 for (tok = s;;) { in strsep() 56 c = *s++; in strsep() 61 s = NULL; in strsep() 63 s[-1] = 0; in strsep() 64 *stringp = s; in strsep()
|
/bionic/libc/include/bits/fortify/ |
D | string.h | 129 void* _Nonnull memset(void* _Nonnull const s __pass_object_size0, int c, size_t n) __overloadable in memset() 134 return __builtin___memset_chk(s, c, n, __bos0(s)); in memset() 136 return __builtin_memset(s, c, n); in memset() 142 void* _Nullable memchr(const void* _Nonnull const s __pass_object_size, int c, size_t n) __overload… in memchr() 143 size_t bos = __bos(s); in memchr() 146 return __builtin_memchr(s, c, n); in memchr() 149 return __memchr_chk(s, c, n, bos); in memchr() 153 void* _Nullable __memrchr_fortify(const void* _Nonnull const __pass_object_size s, int c, size_t n)… in __memrchr_fortify() argument 154 size_t bos = __bos(s); in __memrchr_fortify() 157 return __memrchr_real(s, c, n); in __memrchr_fortify() [all …]
|
/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/private/ |
D | get_cpu_count_from_string.h | 33 static int GetCpuCountFromString(const char* s) { in GetCpuCountFromString() argument 36 while (*s != '\0') { in GetCpuCountFromString() 37 if (isdigit(*s)) { in GetCpuCountFromString() 38 int cpu = static_cast<int>(strtol(s, const_cast<char**>(&s), 10)); in GetCpuCountFromString() 46 if (*s == ',') { in GetCpuCountFromString() 49 s++; in GetCpuCountFromString()
|
D | SigSetConverter.h | 38 SigSetConverter(const sigset_t* s) : SigSetConverter(const_cast<sigset_t*>(s)) {} in SigSetConverter() 40 SigSetConverter(sigset_t* s) { in SigSetConverter() 43 ptr = s; in SigSetConverter() 46 if (s != nullptr) { in SigSetConverter() 47 original_ptr = s; in SigSetConverter() 48 sigset = *s; in SigSetConverter()
|
/bionic/libc/upstream-netbsd/lib/libc/include/isc/ |
D | memcluster.h | 27 #define memget(s) __memget_debug(s, __FILE__, __LINE__) argument 28 #define memput(p, s) __memput_debug(p, s, __FILE__, __LINE__) argument 31 #define memget(s) __memget_record(s, __FILE__, __LINE__) argument 32 #define memput(p, s) __memput_record(p, s, __FILE__, __LINE__) argument
|