Home
last modified time | relevance | path

Searched refs:b2 (Results 1 – 25 of 395) sorted by relevance

12345678910>>...16

/freebsd/contrib/netbsd-tests/lib/libc/string/
H A Dt_memmem.c61 char b2[] = "0123456789"; variable
81 expect(memmem(b2, lb2, p0, lp0) == NULL); in ATF_TC_BODY()
84 expect(memmem(b2, lb2, p0, lp0) == b2); in ATF_TC_BODY()
90 expect(memmem(b2, lb2, p1, lp1) == b2); in ATF_TC_BODY()
91 expect(memmem(b2, lb2, p2, lp2) == (b2 + 4)); in ATF_TC_BODY()
92 expect(memmem(b2, lb2, p3, lp3) == (b2 + 7)); in ATF_TC_BODY()
94 expect(memmem(b2, lb2, p5, lp5) == b2); in ATF_TC_BODY()
95 expect(memmem(b2, lb2, p6, lp6) == (b2 + 9)); in ATF_TC_BODY()
97 expect(memmem(b2, lb2, p4, lp4) == NULL); in ATF_TC_BODY()
98 expect(memmem(b2, lb2, p7, lp7) == NULL); in ATF_TC_BODY()
[all …]
/freebsd/crypto/openssl/fuzz/
H A Dbndiv.c26 static BIGNUM *b2; variable
34 b2 = BN_new(); in FuzzerInitialize()
74 OPENSSL_assert(BN_bin2bn(buf + l1, l2, b2) == b2); in FuzzerTestOneInput()
75 BN_set_negative(b2, s2); in FuzzerTestOneInput()
78 if (BN_is_zero(b2)) { in FuzzerTestOneInput()
83 OPENSSL_assert(BN_div(b3, b4, b1, b2, ctx)); in FuzzerTestOneInput()
87 success = (BN_is_negative(b3) != BN_is_negative(b2) || BN_is_zero(b3)) in FuzzerTestOneInput()
90 success = (BN_is_negative(b3) == BN_is_negative(b2) || BN_is_zero(b3)) in FuzzerTestOneInput()
92 OPENSSL_assert(BN_mul(b5, b3, b2, ctx)); in FuzzerTestOneInput()
99 BN_print_fp(stdout, b2); in FuzzerTestOneInput()
[all …]
H A Dbignum.c37 BIGNUM *b2; in FuzzerTestOneInput() local
43 b2 = BN_new(); in FuzzerTestOneInput()
68 OPENSSL_assert(BN_bin2bn(buf + l1, l2, b2) == b2); in FuzzerTestOneInput()
78 OPENSSL_assert(BN_mod_exp(b4, b1, b2, b3, ctx)); in FuzzerTestOneInput()
79 OPENSSL_assert(BN_mod_exp_simple(b5, b1, b2, b3, ctx)); in FuzzerTestOneInput()
85 BN_print_fp(stdout, b2); in FuzzerTestOneInput()
98 BN_free(b2); in FuzzerTestOneInput()
/freebsd/usr.bin/mididump/
H A Dmididump.c160 uint8_t event, chan, b1, b2; in main() local
191 b2 = read_byte(fd); in main()
202 chan, b1, buf, NOTE2FREQ(b1), b2); in main()
206 b2 = read_byte(fd); in main()
209 chan, b1, b2); in main()
213 b2 = read_byte(fd); in main()
218 chan, b1, ctls[b1], b2); in main()
220 if (b2 <= 63) in main()
226 if (b2 == 0) in main()
228 else if (b2 == 127) in main()
[all …]
/freebsd/crypto/openssl/crypto/chacha/asm/
H A Dchacha-c64xplus.pl121 my ($b0,$b1,$b2,$b3) = (4..7);
128 || ADD @X[$b2],@X[$a2],@X[$a2]
151 || XOR @X[$c2],@X[$b2],@X[$b2]
156 || ROTL @X[$b2],12,@X[$b2]
163 || ADD @Y[$b2],@Y[$a2],@Y[$a2]
168 || ADD @X[$b2],@X[$a2],@X[$a2]
196 || XOR @Y[$c2],@Y[$b2],@Y[$b2]
202 || XOR @X[$c2],@X[$b2],@X[$b2]
210 || ROTL @Y[$b2],12,@Y[$b2]
212 || ROTL @X[$b2],7,@X[$b1]
[all …]
H A Dchacha-ia64.pl103 my ($a2,$b2,$c2,$d2)=map(($_&~3)+(($_+1)&3),($a1,$b1,$c1,$d1));
104 my ($a3,$b3,$c3,$d3)=map(($_&~3)+(($_+1)&3),($a2,$b2,$c2,$d2));
109 add @x[$a2]=@x[$a2],@x[$b2] };;
130 { .mmi; xor @x[$b2]=@x[$b2],@x[$c2]
137 extr.u @y[2]=@x[$b2],20,12
140 dep.z @x[$b2]=@x[$b2],12,20
142 { .mmi; or @x[$b2]=@x[$b2],@y[2]
145 { .mmi; add @x[$a2]=@x[$a2],@x[$b2]
170 xor @x[$b2]=@x[$b2],@x[$c2]
176 extr.u @y[2]=@x[$b2],25,7
[all …]
H A Dchacha-armv4.pl67 my ($a2,$b2,$c2,$d2)=map(($_&~3)+(($_+1)&3),($a1,$b1,$c1,$d1));
68 my ($a3,$b3,$c3,$d3)=map(($_&~3)+(($_+1)&3),($a2,$b2,$c2,$d2));
140 "&add (@x[$a2],@x[$a2],@x[$b2])",
150 "&mov (@x[$b2],@x[$b2],'ror#20')",
153 "&eor (@x[$b2],@x[$b2],$xc,'ror#20')",
156 "&add (@x[$a2],@x[$a2],@x[$b2])",
164 "&mov (@x[$b2],@x[$b2],'ror#25')",
167 "&eor (@x[$b2],@x[$b2],$xc,'ror#25')",
638 my ($a0,$b0,$c0,$d0,$a1,$b1,$c1,$d1,$a2,$b2,$c2,$d2,$t0,$t1,$t2,$t3) =
708 vmov $b2,$b0
[all …]
/freebsd/crypto/openssl/crypto/idea/
H A Di_skey.c93 long n1, n2, q, r, b1, b2, t; in inverse() local
96 b2 = 0; in inverse()
100 b2 = 1; in inverse()
107 if (b2 < 0) in inverse()
108 b2 = 0x10001 + b2; in inverse()
112 t = b2; in inverse()
113 b2 = b1 - q * b2; in inverse()
118 return (IDEA_INT)b2; in inverse()
/freebsd/share/examples/sound/
H A Dmidi.c48 unsigned char raw, type, channel, b1, b2; in main() local
64 if (read(fd, &b2, sizeof(b2)) < sizeof(b2)) in main()
70 channel, b1, b2); in main()
74 channel, b1, b2); in main()
78 channel, b1, b2); in main()
/freebsd/sys/contrib/openzfs/module/zcommon/
H A Dzfs_fletcher_superscalar.c78 uint64_t a2, b2, c2, d2; in fletcher_4_superscalar_native() local
85 b2 = ctx->superscalar[1].v[1]; in fletcher_4_superscalar_native()
93 b2 += a2; in fletcher_4_superscalar_native()
95 c2 += b2; in fletcher_4_superscalar_native()
105 ctx->superscalar[1].v[1] = b2; in fletcher_4_superscalar_native()
117 uint64_t a2, b2, c2, d2; in fletcher_4_superscalar_byteswap() local
124 b2 = ctx->superscalar[1].v[1]; in fletcher_4_superscalar_byteswap()
132 b2 += a2; in fletcher_4_superscalar_byteswap()
134 c2 += b2; in fletcher_4_superscalar_byteswap()
144 ctx->superscalar[1].v[1] = b2; in fletcher_4_superscalar_byteswap()
H A Dzfs_fletcher_superscalar4.c92 uint64_t a2, b2, c2, d2; in fletcher_4_superscalar4_native() local
101 b2 = ctx->superscalar[1].v[1]; in fletcher_4_superscalar4_native()
119 b2 += a2; in fletcher_4_superscalar4_native()
123 c2 += b2; in fletcher_4_superscalar4_native()
137 ctx->superscalar[1].v[1] = b2; in fletcher_4_superscalar4_native()
157 uint64_t a2, b2, c2, d2; in fletcher_4_superscalar4_byteswap() local
166 b2 = ctx->superscalar[1].v[1]; in fletcher_4_superscalar4_byteswap()
184 b2 += a2; in fletcher_4_superscalar4_byteswap()
188 c2 += b2; in fletcher_4_superscalar4_byteswap()
202 ctx->superscalar[1].v[1] = b2; in fletcher_4_superscalar4_byteswap()
/freebsd/contrib/nvi/common/
H A Doptions.c311 CHAR_T b2[1024]; in opts_init() local
313 a.bp = b2; in opts_init()
322 if (STRCMP((CHAR_T*)str, b2) != 0) \ in opts_init()
323 (void)MEMCPY(b2, str, a.len+1); \ in opts_init()
348 (void)SPRINTF(b2, SIZE(b2), in opts_init()
350 OI(O_CDPATH, b2); in opts_init()
360 (void)SPRINTF(b2, SIZE(b2), in opts_init()
362 OI(O_TMPDIR, b2); in opts_init()
368 (void)SPRINTF(b2, SIZE(b2), L("msgcat=%s"), _PATH_MSGCAT); in opts_init()
369 OI(O_MSGCAT, b2); in opts_init()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DConvertUTF.cpp451 UTF8 b1, b2, b3; in findMaximalSubpartOfIllFormedUTF8Sequence() local
485 b2 = *source; in findMaximalSubpartOfIllFormedUTF8Sequence()
489 return (b2 >= 0xA0 && b2 <= 0xBF) ? 2 : 1; in findMaximalSubpartOfIllFormedUTF8Sequence()
492 return (b2 >= 0x80 && b2 <= 0xBF) ? 2 : 1; in findMaximalSubpartOfIllFormedUTF8Sequence()
495 return (b2 >= 0x80 && b2 <= 0x9F) ? 2 : 1; in findMaximalSubpartOfIllFormedUTF8Sequence()
498 return (b2 >= 0x80 && b2 <= 0xBF) ? 2 : 1; in findMaximalSubpartOfIllFormedUTF8Sequence()
501 if (b2 >= 0x90 && b2 <= 0xBF) { in findMaximalSubpartOfIllFormedUTF8Sequence()
511 if (b2 >= 0x80 && b2 <= 0xBF) { in findMaximalSubpartOfIllFormedUTF8Sequence()
521 if (b2 >= 0x80 && b2 <= 0x8F) { in findMaximalSubpartOfIllFormedUTF8Sequence()
/freebsd/sys/contrib/openzfs/module/unicode/
H A Du8_textprep.c145 #define U8_PUT_3BYTES_INTO_UTF32(u, b1, b2, b3) \ argument
147 (((uint32_t)(b2) & 0x3F) << 6) | \
465 uint16_t b2 = 0; in do_case_conv() local
482 b2 = u8s[0] = s[0]; in do_case_conv()
487 b2 = u8s[1] = s[1]; in do_case_conv()
509 b2 = u8_case_common_b2_tbl[uv][b1][b2]; in do_case_conv()
510 if (b2 == U8_TBL_ELEMENT_NOT_DEF) in do_case_conv()
514 b3_tbl = u8_toupper_b3_tbl[uv][b2][b3].tbl_id; in do_case_conv()
525 b3_base = u8_toupper_b3_tbl[uv][b2][b3].base; in do_case_conv()
531 b3_tbl = u8_tolower_b3_tbl[uv][b2][b3].tbl_id; in do_case_conv()
[all …]
/freebsd/crypto/openssl/test/testutil/
H A Dformat_output.c47 char b1[MAX_STRING_WIDTH + 1], b2[MAX_STRING_WIDTH + 1]; in test_fail_string_common() local
79 b2[n2 = l2 > width ? width : l2] = 0; in test_fail_string_common()
81 b2[i] = isprint((unsigned char)m2[i]) ? m2[i] : '.'; in test_fail_string_common()
98 test_printf_stderr("%4u: '%s'\n", cnt, n2 > n1 ? b2 : b1); in test_fail_string_common()
107 test_printf_stderr("%4u:+ '%s'\n", cnt, b2); in test_fail_string_common()
273 char b1[MAX_STRING_WIDTH + 1], b2[MAX_STRING_WIDTH + 1]; in test_fail_bignum_common() local
321 n2 = convert_bn_memory(m2, bytes, b2, &lz2, bn2); in test_fail_bignum_common()
327 if (b1[i] == b2[i] || b1[i] == ' ' || b2[i] == ' ') { in test_fail_bignum_common()
329 diff |= b1[i] != b2[i]; in test_fail_bignum_common()
336 test_printf_stderr(" %s:% 5d\n", n2 > n1 ? b2 : b1, cnt); in test_fail_bignum_common()
[all …]
/freebsd/contrib/netbsd-tests/net/ndp/
H A Dt_ndp.sh168 atf_check -s exit:0 -o ignore rump.ndp -s fc00::10 b2:a0:20:00:00:10
188 atf_check -s exit:0 -o ignore rump.ndp -s fc00::11 b2:a0:20:00:00:11
189 atf_check -s exit:0 -o ignore rump.ndp -s fc00::12 b2:a0:20:00:00:12
212 atf_check -s exit:0 -o ignore rump.ndp -s fc00::10 b2:a0:20:00:00:10 temp
213 rump.ndp -s fc00::10 b2:a0:20:00:00:10 temp
232 atf_check -s not-exit:0 -e ignore rump.ndp -s $IP6SRC b2:a0:20:00:00:ff
238 atf_check -s exit:0 -o ignore rump.ndp -s $IP6DST b2:a0:20:00:00:00
341 b2:a1:00:00:00:01
350 pkt=$(make_pkt_str_na $linklocal b2:a1:00:00:00:01)
354 b2:a1:00:00:00:02 active
[all …]
/freebsd/sys/tools/sound/
H A Dfeeder_eq_mkfilter.awk128 w0, A, alpha, a0, a1, a2, b0, b1, b2)
137 b2 = 1.0 - (alpha * A);
144 b2 = A*((A+1.0)+((A-1.0)*cos(w0))-(2.0*sqrt(A)*alpha));
149 b0 = b1 = b2 = a0 = a1 = a2 = 0.0;
153 b2 /= a0;
162 coeffs["treble", gain, 5] = feedeq_fx_floor(b2);
171 b2 = 1.0 - (alpha * A);
178 b2 = A*((A+1.0)-((A-1.0)*cos(w0))-(2.0*sqrt(A)*alpha));
183 b0 = b1 = b2 = a0 = a1 = a2 = 0.0;
187 b2 /= a0;
[all …]
/freebsd/contrib/arm-optimized-routines/math/test/rtest/
H A Drandom.c31 uint32 a, b, b1, b2; in random32() local
34 for (b1 = 0x80000000, b2 = 1; b1 > b2; b1 >>= 1, b2 <<= 1) { in random32()
35 uint32 b3 = b1 | b2; in random32()
/freebsd/sbin/pfctl/
H A Dpfctl_table.c133 struct pfr_buffer b, b2; in pfctl_table() local
145 bzero(&b2, sizeof(b2)); in pfctl_table()
268 b2.pfrb_type = PFRB_ADDRS; in pfctl_table()
286 if (pfr_buf_add(&b2, in pfctl_table()
293 RVTEST(pfr_del_addrs(&table, b2.pfrb_caddr, b2.pfrb_size, in pfctl_table()
295 xprintf(opts, "%d/%d addresses expired", ndel, b2.pfrb_size); in pfctl_table()
297 PFRB_FOREACH(a, &b2) in pfctl_table()
305 b2.pfrb_type = PFRB_ADDRS; in pfctl_table()
317 if (pfr_buf_add(&b2, &as->pfras_a)) in pfctl_table()
323 RVTEST(pfr_clr_astats(&table, b2.pfrb_caddr, b2.pfrb_size, in pfctl_table()
[all …]
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_stream/salsa20/xmm6int/
H A Du0.h7 __m128i b0, b1, b2, b3, b4, b5, b6, b7; variable
34 b2 = a2;
36 b2 = _mm_srli_epi32(b2, 19);
39 diag1 = _mm_xor_si128(diag1, b2);
106 b2 = a2;
108 b2 = _mm_srli_epi32(b2, 19);
111 diag1 = _mm_xor_si128(diag1, b2);
H A Du1.h7 __m128i b0, b1, b2, b3, b4, b5, b6, b7; variable
35 b2 = a2;
37 b2 = _mm_srli_epi32(b2, 19);
40 diag1 = _mm_xor_si128(diag1, b2);
107 b2 = a2;
109 b2 = _mm_srli_epi32(b2, 19);
112 diag1 = _mm_xor_si128(diag1, b2);
/freebsd/sys/contrib/libsodium/src/libsodium/sodium/
H A Dutils.c144 const unsigned char *b2,
148 const unsigned char *b2, in _sodium_dummy_symbol_to_prevent_memcmp_lto() argument
152 (void) b2; in _sodium_dummy_symbol_to_prevent_memcmp_lto()
162 const unsigned char *b2 = (const unsigned char *) b2_; in sodium_memcmp() local
166 const volatile unsigned char *volatile b2 = in sodium_memcmp()
173 _sodium_dummy_symbol_to_prevent_memcmp_lto(b1, b2, len); in sodium_memcmp()
176 d |= b1[i] ^ b2[i]; in sodium_memcmp()
184 const unsigned char *b2,
188 const unsigned char *b2, in _sodium_dummy_symbol_to_prevent_compare_lto() argument
192 (void) b2; in _sodium_dummy_symbol_to_prevent_compare_lto()
[all …]
/freebsd/contrib/netbsd-tests/net/arp/
H A Dt_arp.sh200 atf_check -s exit:0 -o ignore rump.arp -s 10.0.1.10 b2:a0:20:00:00:10
210 10.0.1.11 b2:a0:20:00:00:11
211 10.0.1.12 b2:a0:20:00:00:12
212 10.0.1.13 b2:a0:20:00:00:13
213 10.0.1.14 b2:a0:20:00:00:14
214 10.0.1.15 b2:a0:20:00:00:15
249 atf_check -s exit:0 -o ignore rump.arp -s 10.0.1.10 b2:a0:20:00:00:10 temp
325 rump.arp -s $IP4SRC b2:a0:20:00:00:ff
331 atf_check -s exit:0 -o ignore rump.arp -s $IP4DST b2:a0:20:00:00:00
336 atf_check -s exit:0 -o ignore rump.arp -s 10.0.1.10 b2:a0:20:00:00:10 temp
[all …]
/freebsd/sys/dev/uart/
H A Duart_cpu_fdt.c60 uart_cpu_eqres(struct uart_bas *b1, struct uart_bas *b2) in uart_cpu_eqres() argument
63 if (b1->bst != b2->bst) in uart_cpu_eqres()
67 if (pmap_kextract(b2->bsh) == 0) in uart_cpu_eqres()
69 return ((pmap_kextract(b1->bsh) == pmap_kextract(b2->bsh)) ? 1 : 0); in uart_cpu_eqres()
/freebsd/crypto/openssl/test/
H A Dexptest.c251 BIGNUM *b2 = NULL; in test_mod_exp_x2() local
272 || !TEST_ptr(b2 = BN_new()) in test_mod_exp_x2()
280 BN_rand(b2, factor_size, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY); in test_mod_exp_x2()
286 || !TEST_true(BN_mod(b2, b2, m2, ctx)) in test_mod_exp_x2()
288 || !TEST_true(BN_mod_exp_simple(r_simple2, a2, b2, m2, ctx)) in test_mod_exp_x2()
290 r_mont_const_x2_2, a2, b2, m2, NULL, in test_mod_exp_x2()
305 BN_print_var(b2); in test_mod_exp_x2()
324 BN_free(b2); in test_mod_exp_x2()

12345678910>>...16