Home
last modified time | relevance | path

Searched refs:s2 (Results 1 – 25 of 384) sorted by relevance

12345678910>>...16

/dflybsd-src/crypto/libressl/crypto/camellia/
H A Dcamellia.c349 u32 s0, s1, s2, s3; in Camellia_Ekeygen() local
353 k[2] = s2 = GETU32(rawKey + 8); in Camellia_Ekeygen()
360 k[10] = s2 = ~s0; in Camellia_Ekeygen()
363 k[10] = s2 = GETU32(rawKey + 24); in Camellia_Ekeygen()
366 s0 ^= k[0], s1 ^= k[1], s2 ^= k[2], s3 ^= k[3]; in Camellia_Ekeygen()
370 Camellia_Feistel(s0, s1, s2, s3, SIGMA + 0); in Camellia_Ekeygen()
371 Camellia_Feistel(s2, s3, s0, s1, SIGMA + 2); in Camellia_Ekeygen()
373 s0 ^= k[0], s1 ^= k[1], s2 ^= k[2], s3 ^= k[3]; in Camellia_Ekeygen()
374 Camellia_Feistel(s0, s1, s2, s3, SIGMA + 4); in Camellia_Ekeygen()
375 Camellia_Feistel(s2, s3, s0, s1, SIGMA + 6); in Camellia_Ekeygen()
[all …]
/dflybsd-src/contrib/grep/lib/
H A Dstreq.h35 streq9 (const char *s1, const char *s2) in streq9() argument
37 return strcmp (s1 + 9, s2 + 9) == 0; in streq9()
41 streq8 (const char *s1, const char *s2, char s28) in streq8() argument
48 return streq9 (s1, s2); in streq8()
55 streq7 (const char *s1, const char *s2, char s27, char s28) in streq7() argument
62 return streq8 (s1, s2, s28); in streq7()
69 streq6 (const char *s1, const char *s2, char s26, char s27, char s28) in streq6() argument
76 return streq7 (s1, s2, s27, s28); in streq6()
83 streq5 (const char *s1, const char *s2, char s25, char s26, char s27, char s28) in streq5() argument
90 return streq6 (s1, s2, s26, s27, s28); in streq5()
[all …]
H A Dc-strcaseeq.h42 strcaseeq9 (const char *s1, const char *s2) in strcaseeq9() argument
44 return c_strcasecmp (s1 + 9, s2 + 9) == 0; in strcaseeq9()
48 strcaseeq8 (const char *s1, const char *s2, char s28) in strcaseeq8() argument
55 return strcaseeq9 (s1, s2); in strcaseeq8()
62 strcaseeq7 (const char *s1, const char *s2, char s27, char s28) in strcaseeq7() argument
69 return strcaseeq8 (s1, s2, s28); in strcaseeq7()
76 strcaseeq6 (const char *s1, const char *s2, char s26, char s27, char s28) in strcaseeq6() argument
83 return strcaseeq7 (s1, s2, s27, s28); in strcaseeq6()
90 strcaseeq5 (const char *s1, const char *s2, char s25, char s26, char s27, char s28) in strcaseeq5() argument
97 return strcaseeq6 (s1, s2, s26, s27, s28); in strcaseeq5()
[all …]
/dflybsd-src/crypto/openssh/
H A Drijndael.c765 u32 s0, s1, s2, s3, t0, t1, t2, t3; in rijndaelEncrypt() local
776 s2 = GETU32(pt + 8) ^ rk[2]; in rijndaelEncrypt()
780 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[ 4]; in rijndaelEncrypt()
781 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[ 5]; in rijndaelEncrypt()
782 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[ 6]; in rijndaelEncrypt()
783 t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[ 7]; in rijndaelEncrypt()
787 s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[10]; in rijndaelEncrypt()
790 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[12]; in rijndaelEncrypt()
791 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[13]; in rijndaelEncrypt()
792 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[14]; in rijndaelEncrypt()
[all …]
/dflybsd-src/sys/crypto/rijndael/
H A Drijndael-alg-fst.c863 u32 s0, s1, s2, s3, t0, t1, t2, t3; in rijndaelEncrypt() local
874 s2 = GETU32(pt + 8) ^ rk[2]; in rijndaelEncrypt()
878 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[ 4]; in rijndaelEncrypt()
879 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[ 5]; in rijndaelEncrypt()
880 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[ 6]; in rijndaelEncrypt()
881 t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[ 7]; in rijndaelEncrypt()
885 s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[10]; in rijndaelEncrypt()
888 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[12]; in rijndaelEncrypt()
889 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[13]; in rijndaelEncrypt()
890 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[14]; in rijndaelEncrypt()
[all …]
/dflybsd-src/usr.bin/tr/
H A Dtr.c53 static STR s2 = { STRING2, NORMAL, 0, OOBCH, 0, { 0, OOBCH }, NULL, NULL }; variable
120 squeeze = setup(argv[1], &s2, 0, 0); in main()
188 if ((s2.str = strdup(argv[1])) == NULL) in main()
191 s2.str = argv[1]; in main()
193 if (!next(&s2)) in main()
206 s2.state == CCLASS_UPPER && in main()
207 s1.cnt == 1 && s2.cnt == 1) { in main()
218 if (!next(&s2)) in main()
220 } while (s2.state == CCLASS_UPPER && s2.cnt > 1); in main()
223 s2.state == CCLASS_LOWER && in main()
[all …]
/dflybsd-src/sys/net/ipfw3_nat/
H A Dip_fw3_nat.c178 struct nat_state2 *s2 = NULL; in ip_fw3_nat() local
204 s2 = alias->tcp_in[*old_port - ALIAS_BEGIN]; in ip_fw3_nat()
209 s2 = alias->udp_in[*old_port - ALIAS_BEGIN]; in ip_fw3_nat()
215 s2 = alias->icmp_in[*old_port]; in ip_fw3_nat()
221 if (s2 == NULL) { in ip_fw3_nat()
314 s2 = kmalloc(LEN_NAT_STATE2, M_IPFW3_NAT, in ip_fw3_nat()
317 s2->src_addr = args->f_id.dst_ip; in ip_fw3_nat()
318 s2->dst_addr = alias->ip.s_addr; in ip_fw3_nat()
320 s2->src_port = s->alias_port; in ip_fw3_nat()
321 s2->dst_port = s->alias_port; in ip_fw3_nat()
[all …]
/dflybsd-src/crypto/libressl/crypto/aes/
H A Daes_core.c792 u32 s0, s1, s2, s3, t0, t1, t2, t3; in AES_encrypt() local
805 s2 = GETU32(in + 8) ^ rk[2]; in AES_encrypt()
809 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[ 4]; in AES_encrypt()
810 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[ 5]; in AES_encrypt()
811 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[ 6]; in AES_encrypt()
812 t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[ 7]; in AES_encrypt()
816 s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[10]; in AES_encrypt()
819 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[12]; in AES_encrypt()
820 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[13]; in AES_encrypt()
821 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[14]; in AES_encrypt()
[all …]
/dflybsd-src/contrib/mpfr/src/
H A Dyn.c324 mpfr_t y, s1, s2, s3; in mpfr_yn() local
329 mpfr_init (s2); in mpfr_yn()
338 mpfr_set_prec (s2, prec); in mpfr_yn()
345 mpfr_pow_ui (s2, z, absn, MPFR_RNDN); in mpfr_yn()
346 mpfr_div_2si (s2, s2, absn, MPFR_RNDN); in mpfr_yn()
356 mpfr_div (s1, s1, s2, MPFR_RNDN); /* (z/2)^(-n) * S1 */ in mpfr_yn()
364 err3 = mpfr_yn_s3 (s3, y, s2, absn); /* (z/2)^n * S3 */ in mpfr_yn()
379 mpfr_div_2ui (s2, z, 1, MPFR_RNDN); /* z/2 */ in mpfr_yn()
380 mpfr_log (s2, s2, MPFR_RNDN); /* log(z/2) */ in mpfr_yn()
382 err2 = MPFR_EXP(s2) > MPFR_EXP(s3) ? MPFR_EXP(s2) : MPFR_EXP(s3); in mpfr_yn()
[all …]
/dflybsd-src/contrib/gcc-8.0/gcc/
H A Dipa-icf-gimple.c641 gimple *s1, *s2; in compare_bb() local
652 s2 = gsi_stmt (gsi2); in compare_bb()
657 (DECL_STRUCT_FUNCTION (m_target_func_decl), s2); in compare_bb()
662 if (gimple_code (s1) != gimple_code (s2)) in compare_bb()
669 as_a <gcall *> (s2))) in compare_bb()
670 return return_different_stmts (s1, s2, "GIMPLE_CALL"); in compare_bb()
673 if (!compare_gimple_assign (s1, s2)) in compare_bb()
674 return return_different_stmts (s1, s2, "GIMPLE_ASSIGN"); in compare_bb()
677 if (!compare_gimple_cond (s1, s2)) in compare_bb()
678 return return_different_stmts (s1, s2, "GIMPLE_COND"); in compare_bb()
[all …]
H A Dipa-icf-gimple.h90 return_different_stmts_1 (gimple *s1, gimple *s2, const char *code, in return_different_stmts_1() argument
99 print_gimple_stmt (dump_file, s2, 3, TDF_DETAILS); in return_different_stmts_1()
106 #define return_different_stmts(s1, s2, code) \ argument
107 return_different_stmts_1 (s1, s2, code, __func__, __LINE__)
164 bool compare_gimple_call (gcall *s1, gcall *s2);
168 bool compare_gimple_assign (gimple *s1, gimple *s2);
172 bool compare_gimple_cond (gimple *s1, gimple *s2);
176 bool compare_gimple_label (const glabel *s1, const glabel *s2);
180 bool compare_gimple_switch (const gswitch *s1, const gswitch *s2);
184 bool compare_gimple_return (const greturn *s1, const greturn *s2);
[all …]
/dflybsd-src/contrib/gdb-7/libiberty/
H A Dfilename_cmp.c51 filename_cmp (const char *s1, const char *s2) in filename_cmp() argument
55 return strcmp(s1, s2); in filename_cmp()
60 int c2 = *s2; in filename_cmp()
82 s2++; in filename_cmp()
109 filename_ncmp (const char *s1, const char *s2, size_t n) in filename_ncmp() argument
113 return strncmp(s1, s2, n); in filename_ncmp()
120 int c2 = *s2; in filename_ncmp()
139 s2++; in filename_ncmp()
188 filename_eq (const void *s1, const void *s2) in filename_eq() argument
191 return filename_cmp ((const char *) s1, (const char *) s2) == 0; in filename_eq()
/dflybsd-src/contrib/gcc-8.0/libiberty/
H A Dfilename_cmp.c56 filename_cmp (const char *s1, const char *s2) in filename_cmp() argument
60 return strcmp(s1, s2); in filename_cmp()
65 int c2 = *s2; in filename_cmp()
87 s2++; in filename_cmp()
114 filename_ncmp (const char *s1, const char *s2, size_t n) in filename_ncmp() argument
118 return strncmp(s1, s2, n); in filename_ncmp()
125 int c2 = *s2; in filename_ncmp()
144 s2++; in filename_ncmp()
193 filename_eq (const void *s1, const void *s2) in filename_eq() argument
196 return filename_cmp ((const char *) s1, (const char *) s2) == 0; in filename_eq()
/dflybsd-src/contrib/binutils-2.27/libiberty/
H A Dfilename_cmp.c56 filename_cmp (const char *s1, const char *s2) in filename_cmp() argument
60 return strcmp(s1, s2); in filename_cmp()
65 int c2 = *s2; in filename_cmp()
87 s2++; in filename_cmp()
114 filename_ncmp (const char *s1, const char *s2, size_t n) in filename_ncmp() argument
118 return strncmp(s1, s2, n); in filename_ncmp()
125 int c2 = *s2; in filename_ncmp()
144 s2++; in filename_ncmp()
193 filename_eq (const void *s1, const void *s2) in filename_eq() argument
196 return filename_cmp ((const char *) s1, (const char *) s2) == 0; in filename_eq()
/dflybsd-src/contrib/binutils-2.34/libiberty/
H A Dfilename_cmp.c56 filename_cmp (const char *s1, const char *s2) in filename_cmp() argument
60 return strcmp(s1, s2); in filename_cmp()
65 int c2 = *s2; in filename_cmp()
87 s2++; in filename_cmp()
114 filename_ncmp (const char *s1, const char *s2, size_t n) in filename_ncmp() argument
118 return strncmp(s1, s2, n); in filename_ncmp()
125 int c2 = *s2; in filename_ncmp()
144 s2++; in filename_ncmp()
193 filename_eq (const void *s1, const void *s2) in filename_eq() argument
196 return filename_cmp ((const char *) s1, (const char *) s2) == 0; in filename_eq()
/dflybsd-src/lib/libc/locale/
H A Dcollcmp.c45 char s1[2], s2[2]; in __collate_range_cmp() local
49 s2[0] = c2; in __collate_range_cmp()
50 s2[1] = '\0'; in __collate_range_cmp()
51 return (strcoll(s1, s2)); in __collate_range_cmp()
56 wchar_t s1[2], s2[2]; in __wcollate_range_cmp() local
60 s2[0] = c2; in __wcollate_range_cmp()
61 s2[1] = L'\0'; in __wcollate_range_cmp()
62 return (wcscoll(s1, s2)); in __wcollate_range_cmp()
/dflybsd-src/usr.bin/xargs/
H A Dstrnsubst.c36 char *s1, *s2, *this; in strnsubst() local
54 s2 = calloc(1, maxsize); in strnsubst()
55 if (s2 == NULL) in strnsubst()
62 strlcpy(s2, s1, maxsize); in strnsubst()
70 if ((strlen(s2) + strlen(s1) + strlen(replstr) - in strnsubst()
72 strlcat(s2, s1, maxsize); in strnsubst()
76 strncat(s2, s1, (uintptr_t)this - (uintptr_t)s1); in strnsubst()
77 strcat(s2, replstr); in strnsubst()
80 strcat(s2, s1); in strnsubst()
82 *str = s2; in strnsubst()
/dflybsd-src/contrib/gdb-7/readline/
H A Dutil.c321 _rl_strindex (s1, s2) in _rl_strindex() argument
322 register const char *s1, *s2; in _rl_strindex()
326 for (i = 0, l = strlen (s2), len = strlen (s1); (len - i) >= l; i++)
327 if (_rl_strnicmp (s1 + i, s2, l) == 0)
375 register char *s1, *s2; local
382 s2 = string2;
385 d = _rl_to_lower (*s1) - _rl_to_lower (*s2); /* XXX - cast to unsigned char? */
390 s2++;
402 register char *s1, *s2; local
406 s2 = string2;
[all …]
/dflybsd-src/contrib/wpa_supplicant/src/utils/
H A Dos.h371 int os_memcmp(const void *s1, const void *s2, size_t n);
396 int os_strcasecmp(const char *s1, const char *s2);
407 int os_strncasecmp(const char *s1, const char *s2, size_t n);
432 int os_strcmp(const char *s1, const char *s2);
443 int os_strncmp(const char *s1, const char *s2, size_t n);
512 #define os_memcmp(s1, s2, n) memcmp((s1), (s2), (n)) argument
520 #define os_strcasecmp(s1, s2) _stricmp((s1), (s2)) argument
522 #define os_strcasecmp(s1, s2) strcasecmp((s1), (s2)) argument
527 #define os_strncasecmp(s1, s2, n) _strnicmp((s1), (s2), (n)) argument
529 #define os_strncasecmp(s1, s2, n) strncasecmp((s1), (s2), (n)) argument
[all …]
/dflybsd-src/gnu/usr.bin/rcs/lib/
H A Drcsrev.c174 register char const *s1, *s2; local
179 s2 = num2 ? num2 : "";
184 return (unsigned char)*s2;
185 if (!*s2)
190 while (*s2=='0') ++s2;
192 for (d2=0; isdigit(*(s2+d2)); d2++) continue;
197 if ((r = memcmp(s1, s2, d1)))
200 s2 += d1;
204 if (*s2) s2++;
218 register char const *s1, *s2; local
[all …]
/dflybsd-src/contrib/gcc-4.7/libiberty/
H A Dfilename_cmp.c51 filename_cmp (const char *s1, const char *s2) in filename_cmp() argument
55 return strcmp(s1, s2); in filename_cmp()
60 int c2 = *s2; in filename_cmp()
82 s2++; in filename_cmp()
109 filename_ncmp (const char *s1, const char *s2, size_t n) in filename_ncmp() argument
113 return strncmp(s1, s2, n); in filename_ncmp()
120 int c2 = *s2; in filename_ncmp()
139 s2++; in filename_ncmp()
/dflybsd-src/lib/libc/string/
H A Dstrcasecmp.c43 strcasecmp_l(const char *s1, const char *s2, locale_t locale) in strcasecmp_l() argument
47 *us2 = (const u_char *)s2; in strcasecmp_l()
56 strcasecmp(const char *s1, const char *s2) in strcasecmp() argument
58 return strcasecmp_l(s1, s2, __get_locale()); in strcasecmp()
62 strncasecmp_l(const char *s1, const char *s2, size_t n, locale_t locale) in strncasecmp_l() argument
68 *us2 = (const u_char *)s2; in strncasecmp_l()
81 strncasecmp(const char *s1, const char *s2, size_t n) in strncasecmp() argument
83 return strncasecmp_l(s1, s2, n, __get_locale()); in strncasecmp()
/dflybsd-src/contrib/gdb-7/gdb/
H A Dobjc-lang.c807 char *s2 = NULL; in parse_selector() local
825 s2 = s1; in parse_selector()
829 if (isalnum (*s2) || (*s2 == '_') || (*s2 == ':')) in parse_selector()
830 *s1++ = *s2; in parse_selector()
831 else if (isspace (*s2)) in parse_selector()
833 else if ((*s2 == '\0') || (*s2 == '\'')) in parse_selector()
837 s2++; in parse_selector()
841 s2 = skip_spaces (s2); in parse_selector()
844 if (*s2 == '\'') in parse_selector()
845 s2++; in parse_selector()
[all …]
/dflybsd-src/usr.sbin/cdcontrol/
H A Dcdcontrol.c514 unsigned m1, m2, s1, s2, f1, f2; in play() local
517 tr2 = m2 = s2 = f2 = f1 = 0; in play()
519 &tr1, &m1, &s1, &f1, &tr2, &m2, &s2, &f2)) in play()
522 tr2 = m2 = s2 = f2 = f1 = 0; in play()
524 &tr1, &m1, &s1, &tr2, &m2, &s2, &f2)) in play()
527 tr2 = m2 = s2 = f2 = f1 = 0; in play()
529 &tr1, &m1, &s1, &f1, &tr2, &m2, &s2)) in play()
532 tr2 = m2 = s2 = f2 = f1 = 0; in play()
534 &tr1, &m1, &s1, &f1, &m2, &s2, &f2)) in play()
537 tr2 = m2 = s2 = f2 = f1 = 0; in play()
[all …]
/dflybsd-src/test/udp/sendsrcaddr/
H A Dudp_sendsrcaddr.c64 int s, opt, s2, on, n; in main() local
113 s2 = socket(AF_INET, SOCK_DGRAM, 0); in main()
114 if (s2 < 0) in main()
118 if (setsockopt(s2, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) in main()
121 if (bind(s2, (const struct sockaddr *)&local, sizeof(local)) < 0) in main()
127 if (test_sendsrcaddr(s2, &remote, &src) < 0) in main()
136 close(s2); in main()
162 s2 = socket(AF_INET, SOCK_DGRAM, 0); in main()
163 if (s2 < 0) in main()
167 if (setsockopt(s2, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) in main()
[all …]

12345678910>>...16