/freebsd-current/lib/libc/string/ |
H A D | strcmp.c | 41 strcmp(const char *s1, const char *s2) argument 43 while (*s1 == *s2++) 44 if (*s1++ == '\0') 46 return (*(const unsigned char *)s1 - *(const unsigned char *)(s2 - 1));
|
H A D | wcscmp.c | 44 wcscmp(const wchar_t *s1, const wchar_t *s2) argument 47 while (*s1 == *s2++) 48 if (*s1++ == '\0') 51 return (*(const unsigned int *)s1 - *(const unsigned int *)--s2);
|
H A D | strncmp.c | 35 strncmp(const char *s1, const char *s2, size_t n) argument 41 if (*s1 != *s2++) 42 return (*(const unsigned char *)s1 - 44 if (*s1++ == '\0')
|
H A D | wcsncmp.c | 37 wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument 43 if (*s1 != *s2++) { 45 return (*(const unsigned int *)s1 - 48 if (*s1++ == 0)
|
H A D | strpbrk.c | 35 * Find the first occurrence in s1 of a character in s2 (excluding NUL). 38 strpbrk(const char *s1, const char *s2) argument 43 while ((c = *s1++) != 0) { 46 return ((char *)(s1 - 1));
|
H A D | wmemcmp.c | 40 wmemcmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument 45 if (*s1 != *s2) { 47 return *s1 > *s2 ? 1 : -1; 49 s1++;
|
H A D | wcsncasecmp.c | 33 wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument 39 for (; *s1; s1++, s2++) { 40 c1 = towlower(*s1);
|
H A D | wcscasecmp.c | 33 wcscasecmp(const wchar_t *s1, const wchar_t *s2) argument 37 for (; *s1; s1++, s2++) { 38 c1 = towlower(*s1);
|
/freebsd-current/crypto/heimdal/lib/roken/ |
H A D | strtok_r.c | 43 strtok_r(char *s1, const char *s2, char **lasts) argument 47 if (s1 == NULL) 48 s1 = *lasts; 49 while(*s1 && strchr(s2, *s1)) 50 ++s1; 51 if(*s1 == '\0') 53 ret = s1; 54 while(*s1 && !strchr(s2, *s1)) [all...] |
H A D | strcasecmp.c | 44 strcasecmp(const char *s1, const char *s2) argument 46 while(toupper((unsigned char)*s1) == toupper((unsigned char)*s2)) { 47 if(*s1 == '\0') 49 s1++; 52 return toupper((unsigned char)*s1) - toupper((unsigned char)*s2);
|
H A D | strncasecmp.c | 43 strncasecmp(const char *s1, const char *s2, size_t n) argument 46 && toupper((unsigned char)*s1) == toupper((unsigned char)*s2)) 48 if(*s1 == '\0') 50 s1++; 56 return toupper((unsigned char)*s1) - toupper((unsigned char)*s2);
|
/freebsd-current/contrib/openpam/lib/libpam/ |
H A D | openpam_strlcmp.h | 34 /* like strcmp(3), but verifies that the entirety of s1 was matched */ 36 strlcmp(const char *s1, const char *s2, size_t len) argument 39 for (; len && *s1 && *s2; --len, ++s1, ++s2) 40 if (*s1 != *s2) 41 return ((unsigned char)*s1 - (unsigned char)*s2); 42 return ((unsigned char)*s1);
|
/freebsd-current/sys/libkern/ |
H A D | strcmp.c | 42 (strcmp)(const char *s1, const char *s2) argument 44 while (*s1 == *s2++) 45 if (*s1++ == '\0') 47 return (*(const unsigned char *)s1 - *(const unsigned char *)(s2 - 1));
|
H A D | strncmp.c | 36 strncmp(const char *s1, const char *s2, size_t n) argument 42 if (*s1 != *s2++) 43 return (*(const unsigned char *)s1 - 45 if (*s1++ == '\0')
|
/freebsd-current/lib/libc/locale/ |
H A D | collcmp.c | 44 char s1[2], s2[2]; local 46 s1[0] = c1; 47 s1[1] = '\0'; 50 return (strcoll(s1, s2)); 55 wchar_t s1[2], s2[2]; local 57 s1[0] = c1; 58 s1[1] = L'\0'; 61 return (wcscoll(s1, s2));
|
/freebsd-current/bin/sh/ |
H A D | mystring.h | 40 #define equal(s1, s2) (strcmp(s1, s2) == 0)
|
/freebsd-current/contrib/sendmail/libsm/ |
H A D | t-strrevcmp.c | 23 char *s1; local 28 s1 = "equal"; 30 SM_TEST(sm_strrevcmp(s1, s2) == 0); 32 s1 = "equal"; 34 SM_TEST(sm_strrevcmp(s1, s2) > 0); 36 s1 = "qual"; 38 SM_TEST(sm_strrevcmp(s1, s2) < 0); 40 s1 = "Equal"; 42 SM_TEST(sm_strrevcmp(s1, s2) < 0); 44 s1 [all...] |
H A D | strrevcmp.c | 25 ** s1 -- first string. 29 ** strcasecmp(reverse(s1), reverse(s2)) 33 sm_strrevcasecmp(s1, s2) 34 const char *s1, *s2; 38 i1 = strlen(s1) - 1; 41 charmap[(unsigned char) s1[i1]] == 59 return (charmap[(unsigned char) s1[i1]] - 67 ** s1 -- first string. 71 ** strcmp(reverse(s1), reverse(s2)) 75 sm_strrevcmp(s1, s [all...] |
/freebsd-current/contrib/ntp/sntp/libpkgver/ |
H A D | colcomp.c | 37 colcomp (s1, s2) 38 register char *s1; 43 while (*s1 && *s2) 45 if ( MyIsDigit(*s1) 48 hilo = (*s1 < *s2) ? -1 : (*s1 > *s2) ? 1 : 0; 49 ++s1; 51 while (MyIsDigit(*s1) 55 hilo = (*s1 < *s2) ? -1 : (*s1 > *s [all...] |
/freebsd-current/sys/contrib/openzfs/module/zfs/ |
H A D | vdev_draid_rand.c | 32 uint64_t s1 = s[1]; local 33 const uint64_t result = rotl(s0 + s1, 17) + s0; 35 s1 ^= s0; 36 s[0] = rotl(s0, 49) ^ s1 ^ (s1 << 21); // a, b 37 s[1] = rotl(s1, 28); // c
|
/freebsd-current/contrib/diff/lib/ |
H A D | strcase.h | 27 extern int strcasecmp (const char *s1, const char *s2); 33 extern int strncasecmp (const char *s1, const char *s2, size_t n);
|
/freebsd-current/usr.bin/sort/ |
H A D | vsort.h | 36 int vcmp(struct bwstring *s1, struct bwstring *s2);
|
/freebsd-current/sys/cddl/contrib/opensolaris/uts/common/dtrace/ |
H A D | dtrace_xoroshiro128_plus.c | 56 uint64_t s1 = 0; local 63 s1 ^= state[1]; 69 jump_state[1] = s1; 80 uint64_t s1 = state[1]; local 82 result = s0 + s1; 84 s1 ^= s0; 85 state[0] = rotl(s0, 55) ^ s1 ^ (s1 << 14); 86 state[1] = rotl(s1, 36);
|
/freebsd-current/sys/contrib/libsodium/test/quirks/ |
H A D | quirks.h | 25 # define strcmp(s1, s2) xstrcmp(s1, s2) 28 strcmp(const char *s1, const char *s2) argument 30 while (*s1 == *s2++) { 31 if (*s1++ == 0) { 35 return *(unsigned char *) s1 - *(unsigned char *) --s2;
|
/freebsd-current/contrib/bearssl/src/symcipher/ |
H A D | chacha20_sse2.c | 92 __m128i s0, s1, s2, s3; local 96 s1 = kw0; 104 s0 = _mm_add_epi32(s0, s1); 111 s1 = _mm_xor_si128(s1, s2); 112 s1 = _mm_or_si128( 113 _mm_slli_epi32(s1, 12), 114 _mm_srli_epi32(s1, 20)); 116 s0 = _mm_add_epi32(s0, s1); 123 s1 [all...] |