Home
last modified time | relevance | path

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

12345678910>>...17

/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()
92 OPENSSL_assert(BN_mul(b5, b3, b2, ctx)); in FuzzerTestOneInput()
99 BN_print_fp(stdout, b2); in FuzzerTestOneInput()
108 BN_is_negative(b2), in FuzzerTestOneInput()
110 BN_is_negative(b3) != BN_is_negative(b2) in FuzzerTestOneInput()
[all …]
H A Dbignum.c37 BIGNUM *b2; in FuzzerTestOneInput() local
43 b2 = BN_new(); in FuzzerTestOneInput()
67 OPENSSL_assert(BN_bin2bn(buf + l1, l2, b2) == b2); in FuzzerTestOneInput()
77 OPENSSL_assert(BN_mod_exp(b4, b1, b2, b3, ctx)); in FuzzerTestOneInput()
78 OPENSSL_assert(BN_mod_exp_simple(b5, b1, b2, b3, ctx)); in FuzzerTestOneInput()
84 BN_print_fp(stdout, b2); in FuzzerTestOneInput()
97 BN_free(b2); in FuzzerTestOneInput()
/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/crypto/openssl/crypto/chacha/asm/
H A Dchacha-c64xplus.pl151 || XOR @X[$c2],@X[$b2],@X[$b2]
156 || ROTL @X[$b2],12,@X[$b2]
202 || XOR @X[$c2],@X[$b2],@X[$b2]
210 || ROTL @Y[$b2],12,@Y[$b2]
254 || XOR @X[$c0],@X[$b2],@X[$b2]
274 ROTL @X[$b2],12,@X[$b2]
319 XOR @X[$c0],@X[$b2],@X[$b2]
332 ROTL @Y[$b2],12,@Y[$b2]
377 XOR @Y[$c0],@Y[$b2],@Y[$b2]
618 || ROTL @X[$b2],12,@X[$b2]
[all …]
H A Dchacha-ia64.pl109 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
177 dep.z @x[$b2]=@x[$b2],7,25 };;
183 { .mmi; or @x[$b2]=@x[$b2],@y[2]
[all …]
H A Dchacha-armv4.pl150 "&mov (@x[$b2],@x[$b2],'ror#20')",
153 "&eor (@x[$b2],@x[$b2],$xc,'ror#20')",
164 "&mov (@x[$b2],@x[$b2],'ror#25')",
167 "&eor (@x[$b2],@x[$b2],$xc,'ror#25')",
708 vmov $b2,$b0
722 vmov $b2,$b0
790 vadd.i32 $b2,$b2,$t1
829 veor $b2,$b2,$t1
1049 vst1.8 {$a2-$b2},[sp]
1076 veor $b2,$b2,$t1
[all …]
/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 a.bp = b2; in opts_init()
346 (void)SPRINTF(b2, SIZE(b2), in opts_init()
358 (void)SPRINTF(b2, SIZE(b2), in opts_init()
366 (void)SPRINTF(b2, SIZE(b2), L("msgcat=%s"), _PATH_MSGCAT); in opts_init()
370 (void)SPRINTF(b2, SIZE(b2), L("path=%s"), ""); in opts_init()
371 OI(O_PATH, b2); in opts_init()
375 (void)SPRINTF(b2, SIZE(b2), in opts_init()
382 (void)SPRINTF(b2, SIZE(b2), L("tags=%s"), _PATH_TAGS); in opts_init()
383 OI(O_TAGS, b2); in opts_init()
392 (void)SPRINTF(b2, SIZE(b2), L("scroll=%ld"), v); 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/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()
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()
343 test_printf_stderr("+%s\n", b2); in test_fail_bignum_common()
345 test_printf_stderr("+%s:% 5d\n", b2, cnt); in test_fail_bignum_common()
464 hex_convert_memory(m2, n2, b2, 8); in test_fail_memory_common()
[all …]
/freebsd/sys/contrib/openzfs/module/unicode/
H A Du8_textprep.c465 uint16_t b2 = 0; in do_case_conv() local
509 b2 = u8_case_common_b2_tbl[uv][b1][b2]; in do_case_conv()
695 uint16_t b2 = 0; in combining_class() local
706 b2 = s[0]; in combining_class()
711 b2 = s[1]; in combining_class()
720 b2 = u8_combining_class_b2_tbl[uv][b1][b2]; in combining_class()
749 uint16_t b2 = 0; in do_decomp() local
853 b2 = u8_decomp_b2_tbl[uv][b1][b2]; in do_decomp()
987 b2 = s[0]; in find_composition_start()
992 b2 = s[1]; in find_composition_start()
[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/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/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/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/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,
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()
192 (void) b2; in _sodium_dummy_symbol_to_prevent_compare_lto()
202 const unsigned char *b2 = b2_; in sodium_compare() local
206 const volatile unsigned char *volatile b2 = in sodium_compare()
215 _sodium_dummy_symbol_to_prevent_compare_lto(b1, b2, len); in sodium_compare()
[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
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
341 atf_check -s exit:0 -o ignore rump.arp -s 10.0.1.10 b2:a0:20:00:00:ff
498 b2:a1:00:00:00:01
[all …]
/freebsd/usr.bin/cmp/
H A Dmisc.c51 int b1, int b2) in diffmsg() argument
59 b2, b2); in diffmsg()
/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()
/freebsd/contrib/gdtoa/
H A Ddtoa.c268 b2 = 0;
272 b2 = -j;
281 b2 -= k;
494 m2 = b2;
507 b2 += i;
513 b2 -= i;
549 b2 += Log2P;
571 b2 += i;
577 b2 += i;
581 if (b2 > 0)
[all …]
/freebsd/sys/dev/usb/
H A Dusb_endian.h104 #define USETW4(w,b3,b2,b1,b0) do { \ argument
107 (w)[2] = (uint8_t)(b2); \
111 #define USETW8(w,b7,b6,b5,b4,b3,b2,b1,b0) do { \ argument
114 (w)[2] = (uint8_t)(b2); \

12345678910>>...17