/picolibc-3.5.0-3.4.0/newlib/libc/string/ |
D | strncat.c | 80 strncat (char *__restrict s1, in strncat() argument 85 char *s = s1; in strncat() 87 while (*s1) in strncat() 88 s1++; in strncat() 89 while (n-- != 0 && (*s1++ = *s2++)) in strncat() 92 *s1 = '\0'; in strncat() 97 char *s = s1; in strncat() 100 if (ALIGNED (s1)) in strncat() 102 unsigned long *aligned_s1 = (unsigned long *)s1; in strncat() 106 s1 = (char *)aligned_s1; in strncat() [all …]
|
D | strcat.c | 76 strcat (char *__restrict s1, in strcat() argument 80 char *s = s1; in strcat() 82 while (*s1) in strcat() 83 s1++; in strcat() 85 while ((*s1++ = *s2++)) in strcat() 89 char *s = s1; in strcat() 93 if (ALIGNED (s1)) in strcat() 95 unsigned long *aligned_s1 = (unsigned long *)s1; in strcat() 99 s1 = (char *)aligned_s1; in strcat() 102 while (*s1) in strcat() [all …]
|
D | strcmp.c | 72 strcmp (const char *s1, in strcmp() argument 76 while (*s1 != '\0' && *s1 == *s2) in strcmp() 78 s1++; in strcmp() 82 return (*(unsigned char *) s1) - (*(unsigned char *) s2); in strcmp() 88 if (!UNALIGNED (s1, s2)) in strcmp() 91 a1 = (unsigned long*)s1; in strcmp() 105 s1 = (char*)a1; in strcmp() 109 while (*s1 != '\0' && *s1 == *s2) in strcmp() 111 s1++; in strcmp() 114 return (*(unsigned char *) s1) - (*(unsigned char *) s2); in strcmp()
|
D | memcmp.c | 67 unsigned char *s1 = (unsigned char *) m1; in memcmp() local 72 if (*s1 != *s2) in memcmp() 74 return *s1 - *s2; in memcmp() 76 s1++; in memcmp() 81 unsigned char *s1 = (unsigned char *) m1; in memcmp() 89 if (!TOO_SMALL(n) && !UNALIGNED(s1,s2)) in memcmp() 93 a1 = (unsigned long*) s1; in memcmp() 106 s1 = (unsigned char*)a1; in memcmp() 112 if (*s1 != *s2) in memcmp() 113 return *s1 - *s2; in memcmp() [all …]
|
D | strncmp.c | 72 strncmp (const char *s1, in strncmp() argument 80 while (n-- != 0 && *s1 == *s2) in strncmp() 82 if (n == 0 || *s1 == '\0') in strncmp() 84 s1++; in strncmp() 88 return (*(unsigned char *) s1) - (*(unsigned char *) s2); in strncmp() 97 if (!UNALIGNED (s1, s2)) in strncmp() 100 a1 = (unsigned long*)s1; in strncmp() 116 s1 = (char*)a1; in strncmp() 120 while (n-- > 0 && *s1 == *s2) in strncmp() 124 if (n == 0 || *s1 == '\0') in strncmp() [all …]
|
D | strpbrk.c | 44 strpbrk (const char *s1, in strpbrk() argument 48 if (!*s1) in strpbrk() 51 while (*s1) in strpbrk() 55 if (*s1 == *c) in strpbrk() 60 s1++; in strpbrk() 64 s1 = NULL; in strpbrk() 66 return (char *) s1; in strpbrk()
|
D | strcspn.c | 45 strcspn (const char *s1, in strcspn() argument 48 const char *s = s1; in strcspn() 51 while (*s1) in strcspn() 55 if (*s1 == *c) in strcspn() 60 s1++; in strcspn() 63 return s1 - s; in strcspn()
|
D | strspn.c | 49 strspn (const char *s1, in strspn() argument 52 const char *s = s1; in strspn() 55 while (*s1) in strspn() 59 if (*s1 == *c) in strspn() 64 s1++; in strspn() 67 return s1 - s; in strspn()
|
D | wcscmp.c | 70 wcscmp (const wchar_t * s1, in wcscmp() argument 74 while (*s1 == *s2++) in wcscmp() 75 if (*s1++ == 0) in wcscmp() 77 return (*s1 < *--s2 ? -1 : 1); in wcscmp()
|
D | strchrnul.c | 35 strchrnul (const char *s1, in strchrnul() argument 38 char *s = strchr(s1, i); in strchrnul() 40 return s ? s : (char *)s1 + strlen(s1); in strchrnul()
|
D | wcsncmp.c | 66 wcsncmp (const wchar_t * s1, in wcsncmp() argument 75 if (*s1 != *s2++) in wcsncmp() 77 return (*s1 < *--s2 ? -1 : 1); in wcsncmp() 79 if (*s1++ == 0) in wcsncmp()
|
D | wmemcmp.c | 65 wmemcmp (const wchar_t * s1, in wmemcmp() argument 73 if (*s1 != *s2) in wmemcmp() 76 return *s1 > *s2 ? 1 : -1; in wmemcmp() 78 s1++; in wmemcmp()
|
D | wcscpy.c | 60 wcscpy (wchar_t *__restrict s1, in wcscpy() argument 66 *s1 = '\0'; in wcscpy() 67 p = s1; in wcscpy() 73 return s1; in wcscpy()
|
D | wcpcpy.c | 30 wcpcpy (wchar_t *__restrict s1, in wcpcpy() argument 33 while ((*s1++ = *s2++)) in wcpcpy() 35 return --s1; in wcpcpy()
|
D | wcsncpy.c | 63 wcsncpy (wchar_t *__restrict s1, in wcsncpy() argument 67 wchar_t *dscan=s1; in wcsncpy() 76 return s1; in wcsncpy()
|
D | wcscat.c | 64 wcscat (wchar_t *__restrict s1, in wcscat() argument 71 p = s1; in wcscat() 79 return s1; in wcscat()
|
D | wcsncat.c | 65 wcsncat (wchar_t *__restrict s1, in wcsncat() argument 73 p = s1; in wcsncat() 84 return s1; in wcsncat()
|
/picolibc-3.5.0-3.4.0/newlib/libc/machine/microblaze/ |
D | strcmp.c | 84 strcmp (const char *s1, in strcmp() argument 91 while (*s1 != '\0' && *s1 == *s2) in strcmp() 93 s1++; in strcmp() 97 return (*(unsigned char *) s1) - (*(unsigned char *) s2); in strcmp() 103 if (!UNALIGNED (s1, s2)) in strcmp() 106 a1 = (unsigned long*)s1; in strcmp() 120 s1 = (char*)a1; in strcmp() 124 while (*s1 != '\0' && *s1 == *s2) in strcmp() 126 s1++; in strcmp() 129 return (*(unsigned char *) s1) - (*(unsigned char *) s2); in strcmp()
|
/picolibc-3.5.0-3.4.0/newlib/libc/machine/hppa/ |
D | strcmp.S | 34 #define s1 26 macro 46 comb,=,n s1,s2,samestring 47 comib,=,n 0,s1,s1isnull 50 extru,<> s1,31,2,tmp1 51 ldwm 4(s1),s1word 62 ldwm 4(s1),s1word 108 ldbs 0(0,s1),ret0 133 ldbs,ma 1(s1),s1word 143 ldhs,ma 2(s1),s1word 152 ldbs,ma 1(s1),s1word /* 11 11 */ [all …]
|
D | memcmp.S | 28 #define s1 26 macro 44 search: combf,=,n s1,s2,findout /*s1 != s2? */ 48 comibf,=,n 0,s1,checks1 /*s1 == NULL? */ 55 ldbs 0(0,s1),28 /* return *s1 */ 59 extru s1,31,2,tmp5 /* Extract the low two bits of the s1 */ 62 dep 0,31,2,s1 /* Compute word address of s1 (DELAY SLOT) */ 64 ldwm 4(0,s1),s1word /* get next s1 word s1+=4 */ 107 ldwm 4(0,s1),s1word /* get next s1 word s1+=4 */ 114 ldwm 4(0,s1),s1word /* get first word of s1 */ 138 ldwm 4(0,s1),s1word /* get next s1 (DELAY SLOT) */ [all …]
|
D | strncmp.S | 24 #define s1 26 macro 40 search: combf,=,n s1,s2,findout /* s1 != s2? */ 44 comibf,=,n 0,s1,checks1 /* s1 == NULL? */ 51 ldbs 0(0,s1),28 /* return *s1 */ 55 extru s1,31,2,tmp5 /* Extract the low two bits of the s1 */ 58 dep 0,31,2,s1 /* Compute word address of s1 (DELAY SLOT) */ 60 ldwm 4(0,s1),s1word /* get next s1 word s1+=4 */ 112 ldwm 4(0,s1),s1word /* get next s1 word s1+=4 */ 119 ldwm 4(0,s1),s1word /* get first word of s1 */ 144 ldwm 4(0,s1),s1word /* get next s1 (DELAY SLOT) */ [all …]
|
/picolibc-3.5.0-3.4.0/test/ |
D | rand.c | 56 double s1 = 0; in main() local 61 s1 += d; in main() 64 double mean = s1 / N; in main() 65 double stddev = sqrt((N * s2 - s1*s1) / ((double) N * ((double) N - 1))); in main()
|
/picolibc-3.5.0-3.4.0/newlib/libm/common/ |
D | sincosf.h | 45 double s1, s2, s3; /* Sine polynomial. */ member 68 double x3, x4, x5, x6, s, c, c1, c2, s1; in sincosf_poly() local 73 s1 = p->s2 + x2 * p->s3; in sincosf_poly() 84 s = x + x3 * p->s1; in sincosf_poly() 87 *sinp = s + x5 * s1; in sincosf_poly() 96 double x3, x4, x6, x7, s, c, c1, c2, s1; in sinf_poly() local 101 s1 = p->s2 + x2 * p->s3; in sinf_poly() 104 s = x + x3 * p->s1; in sinf_poly() 106 return s + x7 * s1; in sinf_poly()
|
/picolibc-3.5.0-3.4.0/newlib/libc/machine/spu/ |
D | strstr_ea.c | 40 __ea char *strstr_ea (__ea const char *s1, __ea const char *s2) in strstr_ea() argument 49 ret = (__ea char *) s1; in strstr_ea() 51 s1_length = strlen_ea (s1); in strstr_ea() 52 while (ret < (s1 + s1_length)) { in strstr_ea()
|
/picolibc-3.5.0-3.4.0/newlib/libm/math/ |
D | sf_atan.c | 52 float w, s1, s2, z; in atanf() local 95 s1 = z * in atanf() 100 return x - x * (s1 + s2); in atanf() 102 z = atanhi[id] - ((x * (s1 + s2) - atanlo[id]) - x); in atanf()
|