/glibc-2.36/string/ |
D | test-memcmp.c | 43 SIMPLE_MEMCMP (const wchar_t *s1, const wchar_t *s2, size_t n) in SIMPLE_MEMCMP() argument 50 while (n-- && (ret = *s1 < *s2 ? -1 : *s1 == *s2 ? 0 : 1) == 0) {s1++; s2++;} in SIMPLE_MEMCMP() 71 SIMPLE_MEMCMP (const char *s1, const char *s2, size_t n) in SIMPLE_MEMCMP() argument 75 while (n-- && (ret = *(unsigned char *) s1++ - *(unsigned char *) s2++) == 0); in SIMPLE_MEMCMP() 91 check_result (impl_t *impl, const CHAR *s1, const CHAR *s2, size_t len, in check_result() argument 94 int result = CALL (impl, s1, s2, len); in check_result() 107 do_one_test (impl_t *impl, const CHAR *s1, const CHAR *s2, size_t len, in do_one_test() argument 110 if (check_result (impl, s1, s2, len, exp_result) < 0) in do_one_test() 118 CHAR *s1, *s2; in do_test() local 132 s2 = (CHAR *) (buf2 + align2); in do_test() [all …]
|
D | test-strncat.c | 103 CHAR *s1, *s2; in do_test() local 116 s2 = (CHAR *) (buf2) + align2; in do_test() 123 s2[i] = 32 + 23 * i % (max_char - 32); in do_test() 127 s2[len2] = '\0'; in do_test() 128 do_one_test (impl, s2, s1, n); in do_test() 137 CHAR *s1, *s2; in do_overflow_tests() local 140 s2 = (CHAR *) buf2; in do_overflow_tests() 143 s2[j] = 32 + 23 * j % (BIG_CHAR - 32); in do_overflow_tests() 144 s2[200] = 0; in do_overflow_tests() 152 s2[200] = '\0'; in do_overflow_tests() [all …]
|
D | test-strcmp.c | 54 simple_wcscmp (const wchar_t *s1, const wchar_t *s2) in simple_wcscmp() argument 60 c2 = *s2++; in simple_wcscmp() 90 simple_strcmp (const char *s1, const char *s2) in simple_strcmp() argument 94 while ((ret = *(unsigned char *) s1 - *(unsigned char*) s2++) == 0 && *s1++); in simple_strcmp() 106 const CHAR *s1, const CHAR *s2, in check_result() argument 109 int result = CALL (impl, s1, s2); in check_result() 125 const CHAR *s1, const CHAR *s2, in do_one_test() argument 128 if (check_result (impl, s1, s2, exp_result) < 0) in do_one_test() 138 CHAR *s1, *s2; in do_test() local 158 s2 = (CHAR *)(buf2 + ((page_size - i) / 16 * 16) + align2); in do_test() [all …]
|
D | test-strncmp.c | 49 simple_wcsncmp (const CHAR *s1, const CHAR *s2, size_t n) in simple_wcsncmp() argument 56 c2 = *s2++; in simple_wcsncmp() 78 simple_strncmp (const char *s1, const char *s2, size_t n) in simple_strncmp() argument 82 while (n-- && (ret = *(unsigned char *) s1 - * (unsigned char *) s2++) == 0 in simple_strncmp() 95 check_result (impl_t *impl, const CHAR *s1, const CHAR *s2, size_t n, in check_result() argument 98 int result = CALL (impl, s1, s2, n); in check_result() 113 do_one_test (impl_t *impl, const CHAR *s1, const CHAR *s2, size_t n, in do_one_test() argument 116 if (check_result (impl, s1, s2, n, exp_result) < 0) in do_one_test() 125 CHAR *s1, *s2; in do_test_limit() local 133 s2 = (CHAR *) (buf2 + page_size); in do_test_limit() [all …]
|
D | test-strncasecmp.c | 37 simple_strncasecmp (const char *s1, const char *s2, size_t n) in simple_strncasecmp() argument 45 - (unsigned char) tolower (*s2))) == 0 in simple_strncasecmp() 50 ++s2; in simple_strncasecmp() 56 check_result (impl_t *impl, const char *s1, const char *s2, size_t n, in check_result() argument 59 int result = CALL (impl, s1, s2, n); in check_result() 74 do_one_test (impl_t *impl, const char *s1, const char *s2, size_t n, in do_one_test() argument 77 if (check_result (impl, s1, s2, n, exp_result) < 0) in do_one_test() 86 char *s1, *s2; in do_test() local 101 s2 = (char *) (buf2 + align2); in do_test() 106 s2[i] = tolower (s1[i]); in do_test() [all …]
|
D | test-strcasestr.c | 32 simple_strcasestr (const char *s1, const char *s2) in simple_strcasestr() argument 35 ssize_t s2len = strlen (s2); in simple_strcasestr() 44 if (tolower (s1[i + j]) != tolower (s2[j])) in simple_strcasestr() 61 check_result (impl_t *impl, const char *s1, const char *s2, in check_result() argument 64 char *result = CALL (impl, s1, s2); in check_result() 77 do_one_test (impl_t *impl, const char *s1, const char *s2, char *exp_result) in do_one_test() argument 79 if (check_result (impl, s1, s2, exp_result) < 0) in do_one_test() 89 char *s2 = (char *) (buf2 + align2); in do_test() local 93 char *ss2 = s2; in do_test() 99 s2[len2] = '\0'; in do_test() [all …]
|
D | test-strcasecmp.c | 35 simple_strcasecmp (const char *s1, const char *s2) in simple_strcasecmp() argument 40 - (unsigned char) tolower (*s2))) == 0 in simple_strcasecmp() 42 ++s2; in simple_strcasecmp() 47 do_one_test (impl_t *impl, const char *s1, const char *s2, int exp_result) in do_one_test() argument 49 int result = CALL (impl, s1, s2); in do_one_test() 66 char *s1, *s2; in do_test() local 81 s2 = (char *) (buf2 + align2); in do_test() 86 s2[i] = tolower (s1[i]); in do_test() 89 s1[len] = s2[len] = 0; in do_test() 91 s2[len + 1] = 24 + exp_result; in do_test() [all …]
|
D | test-strstr.c | 31 simple_strstr (const char *s1, const char *s2) in simple_strstr() argument 34 ssize_t s2len = strlen (s2); in simple_strstr() 43 if (s1[i + j] != s2[j]) in simple_strstr() 60 check_result (impl_t *impl, const char *s1, const char *s2, in check_result() argument 63 char *result = CALL (impl, s1, s2); in check_result() 77 do_one_test (impl_t *impl, const char *s1, const char *s2, char *exp_result) in do_one_test() argument 79 if (check_result (impl, s1, s2, exp_result) < 0) in do_one_test() 89 char *s2 = (char *) (buf2 + align2); in do_test() local 93 char *ss2 = s2; in do_test() 99 s2[len2] = '\0'; in do_test() [all …]
|
D | strncmp.c | 32 STRNCMP (const char *s1, const char *s2, size_t n) in STRNCMP() argument 43 c2 = (unsigned char) *s2++; in STRNCMP() 47 c2 = (unsigned char) *s2++; in STRNCMP() 51 c2 = (unsigned char) *s2++; in STRNCMP() 55 c2 = (unsigned char) *s2++; in STRNCMP() 65 c2 = (unsigned char) *s2++; in STRNCMP()
|
/glibc-2.36/sysdeps/ieee754/dbl-64/ |
D | s_erf.c | 213 double r1, r2, s1, s2, s3, z2, z4; in __erf() local 229 s2 = qq[2] + z * qq[3]; in __erf() 232 s = s1 + z2 * s2 + z4 * s3; in __erf() 238 double s2, s4, s6, P1, P2, P3, P4, Q1, Q2, Q3, Q4; in __erf() local 240 P1 = pa[0] + s * pa[1]; s2 = s * s; in __erf() 241 Q1 = one + s * qa[1]; s4 = s2 * s2; in __erf() 242 P2 = pa[2] + s * pa[3]; s6 = s4 * s2; in __erf() 248 P = P1 + s2 * P2 + s4 * P3 + s6 * P4; in __erf() 249 Q = Q1 + s2 * Q2 + s4 * Q3 + s6 * Q4; in __erf() 266 double R1, R2, R3, R4, S1, S2, S3, S4, s2, s4, s6, s8; in __erf() local [all …]
|
/glibc-2.36/benchtests/ |
D | bench-strncmp.c | 36 simple_wcsncmp (const CHAR *s1, const CHAR *s2, size_t n) in simple_wcsncmp() argument 43 c2 = *s2++; in simple_wcsncmp() 57 simple_strncmp (const char *s1, const char *s2, size_t n) in simple_strncmp() argument 61 while (n-- && (ret = *(unsigned char *) s1 - * (unsigned char *) s2++) == 0 in simple_strncmp() 76 *s2, size_t n, int exp_result) in do_one_test() 84 CALL (impl, s1, s2, n); in do_one_test() 98 CHAR *s1, *s2; in do_test_limit() local 115 s2 = (CHAR *) (buf2 + page_size - n * CHARBYTES); in do_test_limit() 121 s2 = (CHAR *) ((char *) s2 - (align_n - align2)); in do_test_limit() 124 s1[i] = s2[i] = 1 + 23 * i % max_char; in do_test_limit() [all …]
|
D | bench-strcasecmp.c | 32 simple_strcasecmp (const char *s1, const char *s2) in simple_strcasecmp() argument 37 - (unsigned char) tolower (*s2))) == 0 in simple_strcasecmp() 39 ++s2; in simple_strcasecmp() 45 const char *s2, int exp_result) in do_one_test() argument 49 int result = CALL (impl, s1, s2); in do_one_test() 63 CALL (impl, s1, s2); in do_one_test() 77 char *s1, *s2; in do_test() local 98 s2 = (char *) (buf2 + align2); in do_test() 103 s2[i] = tolower (s1[i]); in do_test() 106 s1[len] = s2[len] = 0; in do_test() [all …]
|
D | bench-strcmp.c | 38 simple_wcscmp (const wchar_t *s1, const wchar_t *s2) in simple_wcscmp() argument 44 c2 = *s2++; in simple_wcscmp() 64 simple_strcmp (const char *s1, const char *s2) in simple_strcmp() argument 68 while ((ret = *(unsigned char *) s1 - *(unsigned char*) s2++) == 0 && *s1++); in simple_strcmp() 83 const CHAR *s1, const CHAR *s2, in do_one_test() argument 92 CALL (impl, s1, s2); in do_one_test() 107 CHAR *s1, *s2; in do_test() local 133 s2 = (CHAR *)(buf2 + align2); in do_test() 136 s1[i] = s2[i] = 1 + (23 << ((CHARBYTES - 1) * 8)) * i % max_char; in do_test() 138 s1[len] = s2[len] = 0; in do_test() [all …]
|
D | bench-memcmp.c | 34 SIMPLE_MEMCMP (const wchar_t *s1, const wchar_t *s2, size_t n) in SIMPLE_MEMCMP() argument 41 while (n-- && (ret = *s1 < *s2 ? -1 : *s1 == *s2 ? 0 : 1) == 0) {s1++; s2++;} in SIMPLE_MEMCMP() 48 SIMPLE_MEMCMP (const char *s1, const char *s2, size_t n) in SIMPLE_MEMCMP() argument 52 while (n-- && (ret = *(unsigned char *) s1++ - *(unsigned char *) s2++) == 0); in SIMPLE_MEMCMP() 66 const CHAR *s2, size_t len, int exp_result) in do_one_test() argument 74 CALL (impl, s1, s2, len); in do_one_test() 88 CHAR *s1, *s2; in do_test() local 109 s2 = (CHAR *)(buf2 + align2); in do_test() 112 s1[i] = s2[i] = 1 + (23 << ((CHARBYTES - 1) * 8)) * i % MAX_CHAR; in do_test() 115 s2[len] = align2; in do_test() [all …]
|
D | bench-strncasecmp.c | 32 simple_strncasecmp (const char *s1, const char *s2, size_t n) in simple_strncasecmp() argument 40 - (unsigned char) tolower (*s2))) == 0 in simple_strncasecmp() 45 ++s2; in simple_strncasecmp() 52 const char *s2, size_t n, int exp_result) in do_one_test() argument 60 CALL (impl, s1, s2, n); in do_one_test() 74 char *s1, *s2; in do_test() local 88 s2 = (char *) (buf2 + align2); in do_test() 93 s2[i] = tolower (s1[i]); in do_test() 96 s1[len] = s2[len] = 0; in do_test() 98 s2[len + 1] = 24 + exp_result; in do_test() [all …]
|
D | bench-strtok.c | 61 do_one_test (impl_t * impl, const char *s1, const char *s2) in do_one_test() argument 68 CALL (impl, s1, s2); in do_one_test() 69 CALL (impl, NULL, s2); in do_one_test() 70 CALL (impl, NULL, s2); in do_one_test() 84 char *s2 = (char *) (buf2 + align2); in do_test() local 87 char *ss2 = s2; in do_test() 93 s2[len2] = '\0'; in do_test() 115 memcpy (s1 + (len1 - len2) - 2, s2, len2); in do_test() 117 memcpy (s1 + (len1 - len2) - (3 * len2), s2, len2); in do_test() 120 do_one_test (impl, s1, s2); in do_test()
|
D | bench-strstr.c | 53 basic_strstr (const char *s1, const char *s2) in basic_strstr() argument 56 int c = s2[0]; in basic_strstr() 65 for (i = 1; s2[i] != 0; i++) in basic_strstr() 66 if (s1[i] != s2[i]) in basic_strstr() 68 if (s2[i] == '\0') in basic_strstr() 135 const char *s2, char *exp_result) in do_one_test() argument 143 res = CALL (impl, s1, s2); in do_one_test() 164 char *s2 = (char *) (buf2 + align2); in do_test() local 169 char *ss2 = s2; in do_test() 181 s2[len2] = '\0'; in do_test() [all …]
|
D | bench-strsep.c | 24 simple_strsep (char **s1, char *s2) in simple_strsep() argument 34 ssize_t s2len = strlen (s2); in simple_strsep() 39 if (*s == s2[j]) in simple_strsep() 104 do_one_test (impl_t * impl, const char *s1, const char *s2) in do_one_test() argument 113 CALL (impl, &s1a, s2); in do_one_test() 127 char *s2 = (char *) (buf2 + align2); in do_test() local 133 char *ss2 = s2; in do_test() 139 s2[len2] = '\0'; in do_test() 151 do_one_test (impl, s1, s2); in do_test()
|
/glibc-2.36/wcsmbs/ |
D | wmemcmp.c | 25 __wmemcmp (const wchar_t *s1, const wchar_t *s2, size_t n) in __wmemcmp() argument 33 c2 = s2[0]; in __wmemcmp() 37 c2 = s2[1]; in __wmemcmp() 41 c2 = s2[2]; in __wmemcmp() 45 c2 = s2[3]; in __wmemcmp() 49 s2 += 4; in __wmemcmp() 56 c2 = s2[0]; in __wmemcmp() 60 ++s2; in __wmemcmp() 66 c2 = s2[0]; in __wmemcmp() 70 ++s2; in __wmemcmp() [all …]
|
/glibc-2.36/math/ |
D | atest-sincos.c | 79 #define add_shift_mulh(d,x,s1,s2,sh,n) \ in sincosx_mpn() argument 81 if (s2 != NULL) { \ in sincosx_mpn() 86 mpn_sub_n (tmp,tmp,s2+FRAC/mpbpl,SZ); \ in sincosx_mpn() 88 mpn_add_n (tmp,tmp,s2+FRAC/mpbpl,SZ); \ in sincosx_mpn() 91 mpn_sub_n (tmp,s1,s2+FRAC/mpbpl,SZ); \ in sincosx_mpn() 93 mpn_add_n (tmp,s1,s2+FRAC/mpbpl,SZ); \ in sincosx_mpn() 146 mp1 si, co, x, ox, xt, s2, c2, s3, c3; in do_test() local 174 s2[j] = (mp_limb_t) ds2; in do_test() 175 ds2 = (ds2 - s2[j]) * sf; in do_test() 179 if (mpn_cmp (si, s2, SZ) >= 0) in do_test() [all …]
|
/glibc-2.36/sysdeps/alpha/ |
D | strncmp.S | 46 xor a0, a1, t2 # are s1 and s2 co-aligned? 54 and a1, 7, t5 # find s2 misalignment 56 addq a1, a2, a3 # s2+count 130 subq a1, t4, a1 # adjust s2 for s1 misalignment 132 subq a3, 1, a3 # last byte of s2 134 mskqh t3, t5, t7 # mask garbage in s2 137 srl a3, 3, a3 # remaining full words in s2 count 144 cmpeq a3, 0, t8 # eoc in the first word of s2? 145 cmpbge zero, t7, t7 # eos in the first word of s2? 159 ldq_u t2, 8(a1) # load second partial s2 word [all …]
|
/glibc-2.36/sysdeps/ieee754/ldbl-128ibm/ |
D | e_powl.c | 154 long double s2, s_h, s_l, t_h, t_l, ay; in __ieee754_powl() local 337 s2 = s * s; in __ieee754_powl() 338 u = LN[0] + s2 * (LN[1] + s2 * (LN[2] + s2 * (LN[3] + s2 * LN[4]))); in __ieee754_powl() 339 v = LD[0] + s2 * (LD[1] + s2 * (LD[2] + s2 * (LD[3] + s2 * (LD[4] + s2)))); in __ieee754_powl() 340 r = s2 * s2 * u / v; in __ieee754_powl() 342 s2 = s_h * s_h; in __ieee754_powl() 343 t_h = 3.0 + s2 + r; in __ieee754_powl() 345 t_l = r - ((t_h - 3.0) - s2); in __ieee754_powl()
|
/glibc-2.36/posix/ |
D | tst-cpuset.c | 10 cpu_set_t s2; in do_test() local 16 CPU_ZERO (&s2); in do_test() 17 CPU_SET (0, &s2); in do_test() 18 CPU_SET (1, &s2); in do_test() 20 CPU_AND (&s3, &s1, &s2); in do_test() 27 CPU_OR (&s3, &s1, &s2); in do_test() 28 if (! CPU_EQUAL (&s3, &s2)) in do_test() 34 CPU_XOR (&s3, &s1, &s2); in do_test()
|
/glibc-2.36/sysdeps/ieee754/ldbl-128/ |
D | e_powl.c | 154 _Float128 s2, s_h, s_l, t_h, t_l, ay; in __ieee754_powl() local 344 s2 = s * s; in __ieee754_powl() 345 u = LN[0] + s2 * (LN[1] + s2 * (LN[2] + s2 * (LN[3] + s2 * LN[4]))); in __ieee754_powl() 346 v = LD[0] + s2 * (LD[1] + s2 * (LD[2] + s2 * (LD[3] + s2 * (LD[4] + s2)))); in __ieee754_powl() 347 r = s2 * s2 * u / v; in __ieee754_powl() 349 s2 = s_h * s_h; in __ieee754_powl() 350 t_h = 3.0 + s2 + r; in __ieee754_powl() 355 t_l = r - ((t_h - 3.0) - s2); in __ieee754_powl()
|
/glibc-2.36/inet/ |
D | rexec.c | 110 int s2; in rexec_af() local 118 s2 = __socket(res0->ai_family, res0->ai_socktype, 0); in rexec_af() 119 if (s2 < 0) in rexec_af() 122 __listen(s2, 1); in rexec_af() 124 if (__getsockname(s2, &sa2.sa, &sa2len) < 0) { in rexec_af() 126 (void) __close(s2); in rexec_af() 130 (void) __close(s2); in rexec_af() 141 s3 = TEMP_FAILURE_RETRY (accept(s2, (struct sockaddr *)&from, in rexec_af() 143 __close(s2); in rexec_af()
|