Home
last modified time | relevance | path

Searched refs:s1 (Results 1 – 25 of 75) sorted by relevance

123

/picolibc-latest/newlib/libc/string/
Dstrncat.c80 strncat (char *__restrict s1, in strncat() argument
86 char *s = s1; in strncat()
88 while (*s1) in strncat()
89 s1++; in strncat()
90 while (n-- != 0 && (*s1++ = *s2++)) in strncat()
93 *s1 = '\0'; in strncat()
98 char *s = s1; in strncat()
101 if (ALIGNED (s1)) in strncat()
103 unsigned long *aligned_s1 = (unsigned long *)s1; in strncat()
107 s1 = (char *)aligned_s1; in strncat()
[all …]
Dstrcat.c76 strcat (char *__restrict s1, in strcat() argument
81 char *s = s1; in strcat()
83 while (*s1) in strcat()
84 s1++; in strcat()
86 while ((*s1++ = *s2++)) in strcat()
90 char *s = s1; in strcat()
94 if (ALIGNED (s1)) in strcat()
96 unsigned long *aligned_s1 = (unsigned long *)s1; in strcat()
100 s1 = (char *)aligned_s1; in strcat()
103 while (*s1) in strcat()
[all …]
Dstrcmp.c72 strcmp (const char *s1, in strcmp() argument
77 while (*s1 != '\0' && *s1 == *s2) in strcmp()
79 s1++; in strcmp()
83 return (*(unsigned char *) s1) - (*(unsigned char *) s2); in strcmp()
89 if (!UNALIGNED (s1, s2)) in strcmp()
92 a1 = (unsigned long*)s1; in strcmp()
106 s1 = (char*)a1; in strcmp()
110 while (*s1 != '\0' && *s1 == *s2) in strcmp()
112 s1++; in strcmp()
115 return (*(unsigned char *) s1) - (*(unsigned char *) s2); in strcmp()
Dmemcmp.c67 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 …]
Dstrncmp.c72 strncmp (const char *s1, in strncmp() argument
81 while (n-- != 0 && *s1 == *s2) in strncmp()
83 if (n == 0 || *s1 == '\0') in strncmp()
85 s1++; in strncmp()
89 return (*(unsigned char *) s1) - (*(unsigned char *) s2); in strncmp()
98 if (!UNALIGNED (s1, s2)) in strncmp()
101 a1 = (unsigned long*)s1; in strncmp()
117 s1 = (char*)a1; in strncmp()
121 while (n-- > 0 && *s1 == *s2) in strncmp()
125 if (n == 0 || *s1 == '\0') in strncmp()
[all …]
Dstrcspn.c45 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()
58 s1++; in strcspn()
61 return s1 - s; in strcspn()
Dstrspn.c49 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()
65 s1++; in strspn()
68 return s1 - s; in strspn()
Dstrcat_s.c41 strcat_s(char *restrict s1, rsize_t s1max, const char *restrict s2) in strcat_s() argument
47 if (s1 == NULL) { in strcat_s()
74 s1_len = strnlen_s(s1, s1max); in strcat_s()
83 char *s1cp = s1 + s1_len; in strcat_s()
86 if (s1 <= s2) { in strcat_s()
97 overlap_point = s1; in strcat_s()
133 if (write_null && s1 != NULL) { in strcat_s()
134 *s1 = '\0'; in strcat_s()
Dstrpbrk.c44 strpbrk (const char *s1, in strpbrk() argument
49 while (*s1) in strpbrk()
53 if (*s1 == *c) in strpbrk()
54 return (char *) s1; in strpbrk()
56 s1++; in strpbrk()
Dstrcpy_s.c41 strcpy_s(char *restrict s1, rsize_t s1max, const char *restrict s2) in strcpy_s() argument
46 if (s1 == NULL) { in strcpy_s()
74 char *s1cp = s1; in strcpy_s()
76 if (s1 < s2) { in strcpy_s()
82 overlap_point = s1; in strcpy_s()
116 if (write_null && s1 != NULL) { in strcpy_s()
117 *s1 = '\0'; in strcpy_s()
Dstrncpy_s.c41 strncpy_s(char *restrict s1, rsize_t s1max, const char *restrict s2, rsize_t n) in strncpy_s() argument
46 if (s1 == NULL) { in strncpy_s()
77 char *s1cp = s1; in strncpy_s()
80 if (s1 < s2) { in strncpy_s()
86 overlap_point = s1; in strncpy_s()
138 if (write_null && s1 != NULL) { in strncpy_s()
139 *s1 = '\0'; in strncpy_s()
Dmemcpy_s.c41 memcpy_s(void *restrict s1, rsize_t s1max, const void *restrict s2, rsize_t n) in memcpy_s() argument
45 if (s1 == NULL) { in memcpy_s()
70 const char *s1cp = (const char *)s1; in memcpy_s()
81 (void)memcpy(s1, s2, n); in memcpy_s()
85 if (s1 != NULL) { in memcpy_s()
86 (void)memset(s1, (int32_t)'\0', s1max); in memcpy_s()
Dstrncat_s.c41 strncat_s(char *restrict s1, rsize_t s1max, const char *restrict s2, rsize_t n) in strncat_s() argument
47 s1_len = strnlen_s(s1, s1max); in strncat_s()
49 if (s1 == NULL) { in strncat_s()
83 char *s1cp = s1; in strncat_s()
97 if (s1 <= s2) { in strncat_s()
108 overlap_point = s1; in strncat_s()
160 if (write_null && s1 != NULL) { in strncat_s()
161 *s1 = '\0'; in strncat_s()
Dwcscmp.c69 wcscmp (const wchar_t * s1, in wcscmp() argument
73 while (*s1 == *s2++) in wcscmp()
74 if (*s1++ == 0) in wcscmp()
76 return (*s1 < *--s2 ? -1 : 1); in wcscmp()
Dstrchrnul.c36 strchrnul (const char *s1, in strchrnul() argument
39 char *s = strchr(s1, i); in strchrnul()
41 return s ? s : (char *)s1 + strlen(s1); in strchrnul()
Dwcsncmp.c65 wcsncmp (const wchar_t * s1, in wcsncmp() argument
74 if (*s1 != *s2++) in wcsncmp()
76 return (*s1 < *--s2 ? -1 : 1); in wcsncmp()
78 if (*s1++ == 0) in wcsncmp()
Dmemmove_s.c41 memmove_s(void *s1, rsize_t s1max, const void *s2, rsize_t n) in memmove_s() argument
45 if (s1 == NULL) { in memmove_s()
73 (void)memmove(s1, s2, n); in memmove_s()
77 if (s1 != NULL) { in memmove_s()
78 (void)memset(s1, (int32_t)'\0', s1max); in memmove_s()
Dwmemcmp.c64 wmemcmp (const wchar_t * s1, in wmemcmp() argument
72 if (*s1 != *s2) in wmemcmp()
75 return *s1 > *s2 ? 1 : -1; in wmemcmp()
77 s1++; in wmemcmp()
Dwcscpy.c59 wcscpy (wchar_t *__restrict s1, in wcscpy() argument
65 *s1 = '\0'; in wcscpy()
66 p = s1; in wcscpy()
72 return s1; in wcscpy()
/picolibc-latest/newlib/libc/machine/microblaze/
Dstrcmp.c86 strcmp (const char *s1, in strcmp() argument
93 while (*s1 != '\0' && *s1 == *s2) in strcmp()
95 s1++; in strcmp()
99 return (*(unsigned char *) s1) - (*(unsigned char *) s2); in strcmp()
105 if (!UNALIGNED (s1, s2)) in strcmp()
108 a1 = (unsigned long*)s1; in strcmp()
122 s1 = (char*)a1; in strcmp()
126 while (*s1 != '\0' && *s1 == *s2) in strcmp()
128 s1++; in strcmp()
131 return (*(unsigned char *) s1) - (*(unsigned char *) s2); in strcmp()
/picolibc-latest/newlib/libc/machine/hppa/
Dstrcmp.S36 #define s1 26 macro
48 comb,=,n s1,s2,samestring
49 comib,=,n 0,s1,s1isnull
52 extru,<> s1,31,2,tmp1
53 ldwm 4(s1),s1word
64 ldwm 4(s1),s1word
110 ldbs 0(0,s1),ret0
135 ldbs,ma 1(s1),s1word
145 ldhs,ma 2(s1),s1word
154 ldbs,ma 1(s1),s1word /* 11 11 */
[all …]
Dmemcmp.S30 #define s1 26 macro
46 search: combf,=,n s1,s2,findout /*s1 != s2? */
50 comibf,=,n 0,s1,checks1 /*s1 == NULL? */
57 ldbs 0(0,s1),28 /* return *s1 */
61 extru s1,31,2,tmp5 /* Extract the low two bits of the s1 */
64 dep 0,31,2,s1 /* Compute word address of s1 (DELAY SLOT) */
66 ldwm 4(0,s1),s1word /* get next s1 word s1+=4 */
109 ldwm 4(0,s1),s1word /* get next s1 word s1+=4 */
116 ldwm 4(0,s1),s1word /* get first word of s1 */
140 ldwm 4(0,s1),s1word /* get next s1 (DELAY SLOT) */
[all …]
/picolibc-latest/test/
Drand.c57 double s1 = 0; in main() local
62 s1 += d; in main()
65 double mean = s1 / N; in main()
66 double stddev = sqrt((N * s2 - s1*s1) / ((double) N * ((double) N - 1))); in main()
/picolibc-latest/newlib/libc/posix/
Dcollcmp.c39 char s1[2], s2[2]; in __collate_range_cmp() local
46 s1[0] = c1; in __collate_range_cmp()
47 s1[1] = 0; in __collate_range_cmp()
50 if ((ret = strcoll(s1, s2)) != 0) in __collate_range_cmp()
/picolibc-latest/newlib/libm/common/
Dsincosf.h45 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()

123