/picolibc-latest/newlib/libc/string/ |
D | memcmp.c | 68 unsigned char *s2 = (unsigned char *) m2; in memcmp() local 72 if (*s1 != *s2) in memcmp() 74 return *s1 - *s2; in memcmp() 77 s2++; in memcmp() 82 unsigned char *s2 = (unsigned char *) m2; in memcmp() 89 if (!TOO_SMALL(n) && !UNALIGNED(s1,s2)) in memcmp() 94 a2 = (unsigned long*) s2; in memcmp() 107 s2 = (unsigned char*)a2; in memcmp() 112 if (*s1 != *s2) in memcmp() 113 return *s1 - *s2; in memcmp() [all …]
|
D | strcmp.c | 73 const char *s2) in strcmp() argument 77 while (*s1 != '\0' && *s1 == *s2) in strcmp() 80 s2++; in strcmp() 83 return (*(unsigned char *) s1) - (*(unsigned char *) s2); in strcmp() 89 if (!UNALIGNED (s1, s2)) in strcmp() 93 a2 = (unsigned long*)s2; in strcmp() 107 s2 = (char*)a2; in strcmp() 110 while (*s1 != '\0' && *s1 == *s2) in strcmp() 113 s2++; in strcmp() 115 return (*(unsigned char *) s1) - (*(unsigned char *) s2); in strcmp()
|
D | strncmp.c | 73 const char *s2, in strncmp() argument 81 while (n-- != 0 && *s1 == *s2) in strncmp() 86 s2++; in strncmp() 89 return (*(unsigned char *) s1) - (*(unsigned char *) s2); in strncmp() 98 if (!UNALIGNED (s1, s2)) in strncmp() 102 a2 = (unsigned long*)s2; in strncmp() 118 s2 = (char*)a2; in strncmp() 121 while (n-- > 0 && *s1 == *s2) in strncmp() 128 s2++; in strncmp() 130 return (*(unsigned char *) s1) - (*(unsigned char *) s2); in strncmp()
|
D | wmemcmp.c | 65 const wchar_t * s2, in wmemcmp() argument 72 if (*s1 != *s2) in wmemcmp() 75 return *s1 > *s2 ? 1 : -1; in wmemcmp() 78 s2++; in wmemcmp()
|
D | strxfrm.c | 66 const char *__restrict s2, in strxfrm() argument 73 if ((*s1++ = *s2++) != '\0') in strxfrm() 78 while (*s2) in strxfrm() 80 ++s2; in strxfrm()
|
D | strcat_s.c | 41 strcat_s(char *restrict s1, rsize_t s1max, const char *restrict s2) in strcat_s() argument 59 if (s2 == NULL) { in strcat_s() 84 const char *s2cp = s2; in strcat_s() 86 if (s1 <= s2) { in strcat_s() 88 overlap_point = s2; in strcat_s() 91 if (s2 <= s1cp) { in strcat_s()
|
D | strxfrm_l.c | 56 strxfrm_l (char *__restrict s1, const char *__restrict s2, size_t n, in strxfrm_l() argument 64 if ((*s1++ = *s2++) != '\0') in strxfrm_l() 69 while (*s2) in strxfrm_l() 71 ++s2; in strxfrm_l()
|
D | strcpy_s.c | 41 strcpy_s(char *restrict s1, rsize_t s1max, const char *restrict s2) in strcpy_s() argument 58 if (s2 == NULL) { in strcpy_s() 75 const char *s2cp = s2; in strcpy_s() 76 if (s1 < s2) { in strcpy_s() 78 overlap_point = s2; in strcpy_s()
|
D | strncat_s.c | 41 strncat_s(char *restrict s1, rsize_t s1max, const char *restrict s2, rsize_t n) in strncat_s() argument 57 } else if (s2 == NULL) { in strncat_s() 95 const char *s2cp = s2; in strncat_s() 97 if (s1 <= s2) { in strncat_s() 99 overlap_point = s2; in strncat_s() 102 if (s2 <= s1cp) { in strncat_s()
|
D | strncpy_s.c | 41 strncpy_s(char *restrict s1, rsize_t s1max, const char *restrict s2, rsize_t n) in strncpy_s() argument 56 else if (s2 == NULL) { in strncpy_s() 78 const char *s2cp = s2; in strncpy_s() 80 if (s1 < s2) { in strncpy_s() 82 overlap_point = s2; in strncpy_s()
|
D | wcscmp.c | 70 const wchar_t * s2) in wcscmp() argument 73 while (*s1 == *s2++) in wcscmp() 76 return (*s1 < *--s2 ? -1 : 1); in wcscmp()
|
D | wcsncmp.c | 66 const wchar_t * s2, in wcsncmp() argument 74 if (*s1 != *s2++) in wcsncmp() 76 return (*s1 < *--s2 ? -1 : 1); in wcsncmp()
|
D | strpbrk.c | 45 const char *s2) in strpbrk() argument 47 const char *c = s2; in strpbrk() 51 for (c = s2; *c; c++) in strpbrk()
|
D | memcpy_s.c | 41 memcpy_s(void *restrict s1, rsize_t s1max, const void *restrict s2, rsize_t n) in memcpy_s() argument 55 if (s2 == NULL) { in memcpy_s() 71 const char *s2cp = (const char *)s2; in memcpy_s() 81 (void)memcpy(s1, s2, n); in memcpy_s()
|
D | memmove_s.c | 41 memmove_s(void *s1, rsize_t s1max, const void *s2, rsize_t n) in memmove_s() argument 55 if (s2 == NULL) { in memmove_s() 73 (void)memmove(s1, s2, n); in memmove_s()
|
/picolibc-latest/newlib/libc/machine/microblaze/ |
D | strcmp.c | 87 const char *s2) in strcmp() argument 93 while (*s1 != '\0' && *s1 == *s2) in strcmp() 96 s2++; in strcmp() 99 return (*(unsigned char *) s1) - (*(unsigned char *) s2); in strcmp() 105 if (!UNALIGNED (s1, s2)) in strcmp() 109 a2 = (unsigned long*)s2; in strcmp() 123 s2 = (char*)a2; in strcmp() 126 while (*s1 != '\0' && *s1 == *s2) in strcmp() 129 s2++; in strcmp() 131 return (*(unsigned char *) s1) - (*(unsigned char *) s2); in strcmp()
|
/picolibc-latest/newlib/libc/machine/hppa/ |
D | strcmp.S | 37 #define s2 25 macro 48 comb,=,n s1,s2,samestring 50 comib,=,n 0,s2,s2isnull 54 dep,= s2,29,2,tmp1 59 ldwm 4(s2),s2word 103 ldbs 0(0,s2),ret0 155 ldbs,ma 1(s2),s2word 164 ldbs,ma 1(s2),s2word 172 ldhs,ma 2(s2),s2word /* load next halfword */ 187 extru s2,31,2,tmp5 [all …]
|
D | memcmp.S | 31 #define s2 25 macro 46 search: combf,=,n s1,s2,findout /*s1 != s2? */ 51 ldbs 0(0,s2),ret0 /**/ 55 comibf,=,n 0,s2,checkitout /*s2 == NULL? */ 60 extru s2,31,2,tmp1 /* Extract the low two bits of the s2. */ 65 dep 0,31,2,s2 /* Compute word address of s2 */ 68 ldwm 4(0,s2),s2word /* get next s2 word s2+=4 (DELAY SLOT) */ 107 ldwm 4(0,s2),s2word /* get next s2 word s2+=4 */ 113 dep r0,31,2,s2 /* Compute word address of s2 */ 117 ldwm 4(0,s2),s2word /* get first word or s2 */ [all …]
|
D | strncmp.S | 27 #define s2 25 macro 42 search: combf,=,n s1,s2,findout /* s1 != s2? */ 47 ldbs 0(0,s2),ret0 /* */ 51 comibf,=,n 0,s2,checkitout /* s2 == NULL? */ 56 extru s2,31,2,tmp1 /* Extract the low two bits of the s2. */ 61 dep 0,31,2,s2 /* Compute word address of s2 */ 64 ldwm 4(0,s2),s2word /* get next s2 word s2+=4 (DELAY SLOT) */ 112 ldwm 4(0,s2),s2word /* get next s2 word s2+=4 */ 118 dep r0,31,2,s2 /* Compute word address of s2 */ 122 ldwm 4(0,s2),s2word /* get first word or s2 */ [all …]
|
/picolibc-latest/newlib/libc/posix/ |
D | collcmp.c | 39 char s1[2], s2[2]; in __collate_range_cmp() local 48 s2[0] = c2; in __collate_range_cmp() 49 s2[1] = 0; in __collate_range_cmp() 50 if ((ret = strcoll(s1, s2)) != 0) in __collate_range_cmp()
|
/picolibc-latest/newlib/libc/machine/spu/ |
D | strstr_ea.c | 42 __ea char *strstr_ea (__ea const char *s1, __ea const char *s2) in strstr_ea() argument 52 s2_length = strlen_ea (s2); in strstr_ea() 57 ret = strchr_ea (ret, s2[0]); in strstr_ea() 63 curr = strchr_ea (ret, s2[i]); in strstr_ea()
|
/picolibc-latest/newlib/libm/ld/ld128/ |
D | e_powl.c | 147 long double s2, s_h, s_l, t_h, t_l; in powl() local 339 s2 = s * s; in powl() 340 u = LN[0] + s2 * (LN[1] + s2 * (LN[2] + s2 * (LN[3] + s2 * LN[4]))); in powl() 341 v = LD[0] + s2 * (LD[1] + s2 * (LD[2] + s2 * (LD[3] + s2 * (LD[4] + s2)))); in powl() 342 r = s2 * s2 * u / v; in powl() 344 s2 = s_h * s_h; in powl() 345 t_h = 3.0L + s2 + r; in powl() 350 t_l = r - ((t_h - 3.0L) - s2); in powl()
|
/picolibc-latest/newlib/libm/math/ |
D | sf_pow.c | 171 float s2, s_h, s_l, t_h, t_l; in powf() local 207 s2 = s * s; in powf() 208 r = s2 * s2 * in powf() 209 (L1 + s2 * (L2 + s2 * (L3 + s2 * (L4 + s2 * (L5 + s2 * L6))))); in powf() 211 s2 = s_h * s_h; in powf() 212 t_h = (float)3.0 + s2 + r; in powf() 215 t_l = r - ((t_h - (float)3.0) - s2); in powf()
|
D | sf_atan.c | 52 float w, s1, s2, z; in atanf() local 98 s2 = w * (aT[1] + w * (aT[3] + w * (aT[5] + w * (aT[7] + w * aT[9])))); in atanf() 100 return x - x * (s1 + s2); in atanf() 102 z = atanhi[id] - ((x * (s1 + s2) - atanlo[id]) - x); in atanf()
|
D | s_pow.c | 236 __float64 s2, s_h, s_l, t_h, t_l; in pow64() local 271 s2 = s * s; in pow64() 272 r = s2 * s2 * in pow64() 273 (L1 + s2 * (L2 + s2 * (L3 + s2 * (L4 + s2 * (L5 + s2 * L6))))); in pow64() 275 s2 = s_h * s_h; in pow64() 276 t_h = _F_64(3.0) + s2 + r; in pow64() 278 t_l = r - ((t_h - _F_64(3.0)) - s2); in pow64()
|