Home
last modified time | relevance | path

Searched refs:z2 (Results 1 – 25 of 134) sorted by relevance

123456

/netbsd-src/sys/external/isc/libsodium/dist/src/libsodium/crypto_scalarmult/curve25519/sandy2x/
H A Dcurve25519_sandy2x.c22 #define z2 var[2] macro
45 z_51.v[0] = (z2[1] << 26) + z2[0]; in crypto_scalarmult_curve25519_sandy2x()
46 z_51.v[1] = (z2[3] << 26) + z2[2]; in crypto_scalarmult_curve25519_sandy2x()
47 z_51.v[2] = (z2[5] << 26) + z2[4]; in crypto_scalarmult_curve25519_sandy2x()
48 z_51.v[3] = (z2[7] << 26) + z2[6]; in crypto_scalarmult_curve25519_sandy2x()
49 z_51.v[4] = (z2[9] << 26) + z2[8]; in crypto_scalarmult_curve25519_sandy2x()
65 #undef z2
68 #define z2 var[1] macro
89 z_51.v[0] = (z2[1] << 26) + z2[0]; in crypto_scalarmult_curve25519_sandy2x_base()
90 z_51.v[1] = (z2[3] << 26) + z2[2]; in crypto_scalarmult_curve25519_sandy2x_base()
[all …]
H A Dfe51_invert.c15 fe51 z2; in fe51_invert() local
25 /* 2 */ fe51_square(&z2,x); in fe51_invert()
26 /* 4 */ fe51_square(&t,&z2); in fe51_invert()
29 /* 11 */ fe51_mul(&z11,&z9,&z2); in fe51_invert()
/netbsd-src/sys/external/isc/libsodium/dist/src/libsodium/crypto_scalarmult/curve25519/ref10/
H A Dx25519_ref10.c60 fe25519 z2; in crypto_scalarmult_curve25519_ref10() local
80 fe25519_0(z2); in crypto_scalarmult_curve25519_ref10()
90 fe25519_cswap(z2, z3, swap); in crypto_scalarmult_curve25519_ref10()
93 fe25519_sub(tmp1, x2, z2); in crypto_scalarmult_curve25519_ref10()
94 fe25519_add(x2, x2, z2); in crypto_scalarmult_curve25519_ref10()
95 fe25519_add(z2, x3, z3); in crypto_scalarmult_curve25519_ref10()
97 fe25519_mul(z2, z2, tmp1); in crypto_scalarmult_curve25519_ref10()
100 fe25519_add(x3, z3, z2); in crypto_scalarmult_curve25519_ref10()
101 fe25519_sub(z2, z3, z2); in crypto_scalarmult_curve25519_ref10()
104 fe25519_sq(z2, z2); in crypto_scalarmult_curve25519_ref10()
[all …]
/netbsd-src/external/lgpl3/mpfr/dist/tests/
H A Dtpow_all.c76 mpfr_srcptr z1, int inex1, mpfr_srcptr z2, int inex2, in cmpres() argument
87 if (MPFR_IS_PURE_FP (z2)) in cmpres()
90 else if (SAME_SIGN (inex1, inex2) && SAME_VAL (z1, z2)) in cmpres()
117 mpfr_out_str (stdout, 16, 0, z2, MPFR_RNDN); in cmpres()
145 mpfr_t z2; in test_others() local
152 mpfr_init2 (z2, mpfr_get_prec (z1)); in test_others()
155 inex2 = mpfr_pow (z2, x, y, rnd); in test_others()
156 cmpres (spx, sx, sy, rnd, z1, inex1, z2, inex2, MPFR_FLAGS_ALL, in test_others()
167 inex2 = mpfr_pow_ui (z2, x, yy, rnd); in test_others()
168 cmpres (spx, sx, sy, rnd, z1, inex1, z2, inex2, flags, in test_others()
[all …]
H A Dttrunc.c31 mpfr_t x, y, z, t, y2, z2, t2; in main() local
35 mpfr_inits2 (SIZEX, x, y, z, t, y2, z2, t2, (mpfr_ptr) 0); in main()
74 mpfr_set_prec(z2, k); in main()
82 mpfr_set(z2, x, MPFR_RNDZ); in main()
95 if (!mpfr_eq(z, z2, k)) in main()
99 printf ("round(x, RNDZ) = "); mpfr_dump (z2); in main()
114 mpfr_clears (x, y, z, t, y2, z2, t2, (mpfr_ptr) 0); in main()
H A Dtfmma.c255 mpfr_t a, k, c, d, z1, z2; in overflow_tests() local
293 mpfr_init2 (z2, prec_z); in overflow_tests()
296 mpfr_fmma (z2, a, a, c, d, rnd) : in overflow_tests()
297 mpfr_fmms (z2, a, a, c, d, rnd); in overflow_tests()
301 mpfr_equal_p (z1, z2))) in overflow_tests()
310 mpfr_dump (z2); in overflow_tests()
333 mpfr_fmma (z2, a, a, c, d, rnd) : in overflow_tests()
334 mpfr_fmms (z2, a, a, c, d, rnd); in overflow_tests()
338 mpfr_equal_p (z1, z2))) in overflow_tests()
347 mpfr_dump (z2); in overflow_tests()
[all …]
H A Dtdiv.c460 mpfr_t x, y, z, z2, z3, tmp; in check_lowr() local
468 mpfr_init2 (z2, 10); in check_lowr()
484 c = test_div (z2, x, tmp, MPFR_RNDN); in check_lowr()
486 if (c || mpfr_cmp (z2, z)) in check_lowr()
489 printf ("got "); mpfr_dump (z2); in check_lowr()
497 mpfr_set_prec (z2, 9); in check_lowr()
507 c = test_div (z2, x, tmp, MPFR_RNDN); in check_lowr()
511 c2 = get_inexact (z2, x, tmp); in check_lowr()
512 if ((mpfr_cmp (z2, z) == 0 && c) || inex_cmp (c, c2)) in check_lowr()
515 printf ("got "); mpfr_dump (z2); in check_lowr()
[all …]
H A Dtmul_2exp.c48 mpfr_t x, y, z1, z2; in underflow() local
71 mpfr_inits2 (prec, z1, z2, (mpfr_ptr) 0); in underflow()
91 mpfr_mul_2si (z2, x, e - k, (mpfr_rnd_t) rnd) : in underflow()
93 mpfr_div_2si (z2, x, k - e, (mpfr_rnd_t) rnd) : in underflow()
94 mpfr_div_2ui (z2, x, k - e, (mpfr_rnd_t) rnd); in underflow()
97 mpfr_equal_p (z1, z2)) in underflow()
115 mpfr_out_str (stdout, 16, 0, z2, MPFR_RNDN); in underflow()
121 mpfr_clears (z1, z2, (mpfr_ptr) 0); in underflow()
/netbsd-src/external/lgpl3/mpc/dist/src/
H A Dcmp_abs.c27 mpc_t z1, z2; in mpc_cmp_abs() local
56 z2 [0] = b [0]; in mpc_cmp_abs()
62 MPFR_CHANGE_SIGN (mpc_realref (z2)); in mpc_cmp_abs()
64 MPFR_CHANGE_SIGN (mpc_imagref (z2)); in mpc_cmp_abs()
67 if (mpfr_cmp (mpc_realref (z2), mpc_imagref (z2)) > 0) in mpc_cmp_abs()
68 mpfr_swap (mpc_realref (z2), mpc_imagref (z2)); in mpc_cmp_abs()
71 if (mpfr_cmp (mpc_realref (z1), mpc_realref (z2)) == 0) in mpc_cmp_abs()
72 return mpfr_cmp (mpc_imagref (z1), mpc_imagref (z2)); in mpc_cmp_abs()
73 if (mpfr_cmp (mpc_imagref (z1), mpc_imagref (z2)) == 0) in mpc_cmp_abs()
74 return mpfr_cmp (mpc_realref (z1), mpc_realref (z2)); in mpc_cmp_abs()
[all …]
H A Dballs.c159 mpcb_mul (mpcb_ptr z, mpcb_srcptr z1, mpcb_srcptr z2) in mpcb_mul() argument
162 mpfr_prec_t p = MPC_MIN (mpcb_get_prec (z1), mpcb_get_prec (z2)); in mpcb_mul()
163 int overlap = (z == z1 || z == z2); in mpcb_mul()
172 mpc_mul (zc, z1->c, z2->c, MPC_RNDNN); in mpcb_mul()
178 mpcr_mul (r, z1->r, z2->r); in mpcb_mul()
180 mpcr_add (r, r, z2->r); in mpcb_mul()
240 mpcb_add (mpcb_ptr z, mpcb_srcptr z1, mpcb_srcptr z2) in mpcb_add() argument
243 mpfr_prec_t p = MPC_MIN (mpcb_get_prec (z1), mpcb_get_prec (z2)); in mpcb_add()
244 int overlap = (z == z1 || z == z2); in mpcb_add()
253 mpc_add (zc, z1->c, z2->c, MPC_RNDZZ); in mpcb_add()
[all …]
/netbsd-src/external/lgpl3/mpc/dist/tests/
H A Dtgeneric.c912 mpc_t z1, z2, z3, z4, z5, zzzz, zzzz2; in tgeneric() local
923 mpc_init2 (z2, prec_max); in tgeneric()
930 mpc_init2 (z2, prec_max); in tgeneric()
941 mpc_init2 (z2, prec_max); in tgeneric()
946 mpc_init2 (z2, prec_max); in tgeneric()
953 mpc_init2 (z2, prec_max); in tgeneric()
959 mpc_init2 (z2, prec_max); in tgeneric()
965 mpc_init2 (z2, prec_max); in tgeneric()
975 mpc_init2 (z2, prec_max); in tgeneric()
1005 mpc_set_prec (z2, prec); in tgeneric()
[all …]
H A Dteta.c31 mpc_t z2; in mpcb_j_err() local
34 mpc_init2 (z2, p); in mpcb_j_err()
41 mpc_div_2ui (z2, z, 1, MPC_RNDNN); in mpcb_j_err()
42 mpcb_eta_err (eta2, z2, err_re, err_im); in mpcb_j_err()
55 mpc_clear (z2); in mpcb_j_err()
/netbsd-src/sys/lib/libkern/
H A Dsoftfloat-macros.h230 bits64 z0, z1, z2; in shift128ExtraRightJamming() local
234 z2 = a2; in shift128ExtraRightJamming()
240 z2 = a1<<negCount; in shift128ExtraRightJamming()
246 z2 = a1; in shift128ExtraRightJamming()
252 z2 = a0<<negCount; in shift128ExtraRightJamming()
256 z2 = ( count == 128 ) ? a0 : ( a0 != 0 ); in shift128ExtraRightJamming()
262 z2 |= ( a2 != 0 ); in shift128ExtraRightJamming()
264 *z2Ptr = z2; in shift128ExtraRightJamming()
307 bits64 z0, z1, z2; in shortShift192Left() local
310 z2 = a2<<count; in shortShift192Left()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/config/mips/
H A Dmips-dspr2.md91 "addu.ph\t%0,%z1,%z2"
103 "addu_s.ph\t%0,%z1,%z2"
113 "adduh.qb\t%0,%z1,%z2"
123 "adduh_r.qb\t%0,%z1,%z2"
137 return "append\t%0,%z2,%3";
152 return "balign\t%0,%z2,%3";
167 "cmpgdu.eq.qb\t%0,%z1,%z2"
181 "cmpgdu.lt.qb\t%0,%z1,%z2"
195 "cmpgdu.le.qb\t%0,%z1,%z2"
206 "dpa.w.ph\t%q0,%z2,%z3"
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/mips/
H A Dmips-dspr2.md91 "addu.ph\t%0,%z1,%z2"
103 "addu_s.ph\t%0,%z1,%z2"
113 "adduh.qb\t%0,%z1,%z2"
123 "adduh_r.qb\t%0,%z1,%z2"
137 return "append\t%0,%z2,%3";
152 return "balign\t%0,%z2,%3";
167 "cmpgdu.eq.qb\t%0,%z1,%z2"
181 "cmpgdu.lt.qb\t%0,%z1,%z2"
195 "cmpgdu.le.qb\t%0,%z1,%z2"
206 "dpa.w.ph\t%q0,%z2,%z3"
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/ec/curve448/
H A Dcurve448.c390 gf x1, x2, z2, x3, z3, t1, t2; in ossl_x448_int() local
397 gf_copy(z2, ZERO); in ossl_x448_int()
416 gf_cond_swap(z2, z3, swap); in ossl_x448_int()
424 gf_add_nr(t1, x2, z2); /* A = x2 + z2 */ /* 2+e */ in ossl_x448_int()
425 gf_sub_nr(t2, x2, z2); /* B = x2 - z2 */ /* 3+e */ in ossl_x448_int()
426 gf_sub_nr(z2, x3, z3); /* D = x3 - z3 */ /* 3+e */ in ossl_x448_int()
427 gf_mul(x2, t1, z2); /* DA */ in ossl_x448_int()
428 gf_add_nr(z2, z3, x3); /* C = x3 + z3 */ /* 2+e */ in ossl_x448_int()
429 gf_mul(x3, t2, z2); /* CB */ in ossl_x448_int()
431 gf_sqr(z2, z3); /* (DA-CB)^2 */ in ossl_x448_int()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/ec/curve448/
H A Dcurve448.c383 gf x1, x2, z2, x3, z3, t1, t2; in x448_int() local
390 gf_copy(z2, ZERO); in x448_int()
409 gf_cond_swap(z2, z3, swap); in x448_int()
417 gf_add_nr(t1, x2, z2); /* A = x2 + z2 */ /* 2+e */ in x448_int()
418 gf_sub_nr(t2, x2, z2); /* B = x2 - z2 */ /* 3+e */ in x448_int()
419 gf_sub_nr(z2, x3, z3); /* D = x3 - z3 */ /* 3+e */ in x448_int()
420 gf_mul(x2, t1, z2); /* DA */ in x448_int()
421 gf_add_nr(z2, z3, x3); /* C = x3 + z3 */ /* 2+e */ in x448_int()
422 gf_mul(x3, t2, z2); /* CB */ in x448_int()
424 gf_sqr(z2, z3); /* (DA-CB)^2 */ in x448_int()
[all …]
/netbsd-src/lib/libc/softfloat/bits32/
H A Dsoftfloat-macros167 bits32 z0, z1, z2;
171 z2 = a2;
177 z2 = a1<<negCount;
183 z2 = a1;
189 z2 = a0<<negCount;
193 z2 = ( count == 64 ) ? a0 : ( a0 != 0 );
199 z2 |= ( a2 != 0 );
201 *z2Ptr = z2;
246 bits32 z0, z1, z2;
249 z2 = a2<<count;
[all …]
/netbsd-src/sys/external/isc/libsodium/dist/src/libsodium/crypto_stream/salsa20/xmm6int/
H A Du4.h4 __m128i z0, z1, z2, z3, z4, z5, z6, z7, z8, z9, z10, z11, z12, z13, z14, variable
25 z2 = _mm_loadu_si128((__m128i *) (x + 8));
26 z7 = _mm_shuffle_epi32(z2, 0xff);
27 z13 = _mm_shuffle_epi32(z2, 0x55);
28 z2 = _mm_shuffle_epi32(z2, 0xaa);
37 orig2 = z2;
92 z2 = orig2;
189 z2 = _mm_xor_si128(z2, y2);
191 z2 = _mm_xor_si128(z2, r2);
202 y6 = _mm_add_epi32(y6, z2);
[all …]
H A Du8.h16 __m256i z2 = _mm256_set1_epi32(x[10]); variable
25 __m256i orig2 = z2;
92 z2 = orig2;
189 z2 = _mm256_xor_si256(z2, y2);
191 z2 = _mm256_xor_si256(z2, r2);
202 y6 = _mm256_add_epi32(y6, z2);
217 y10 = z2;
253 z2 = _mm256_xor_si256(z2, y2);
255 z2 = _mm256_xor_si256(z2, r2);
266 y3 = _mm256_add_epi32(y3, z2);
[all …]
/netbsd-src/tests/lib/libm/
H A Dt_fenv.c140 double z1, z2; in checkrounding() local
145 z2 = 1 + 2*ulp1; in checkrounding()
149 z2 = 1 + ulp1; in checkrounding()
153 z2 = 1 + 2*ulp1; in checkrounding()
157 z2 = 1 + ulp1; in checkrounding()
165 ATF_CHECK_EQ_MSG(y2, z2, "%s[1 + 3*(ulp(1)/2)] expected=%a actual=%a", in checkrounding()
166 name, y2, z2); in checkrounding()
/netbsd-src/lib/libc/softfloat/bits64/
H A Dsoftfloat-macros242 bits64 z0, z1, z2;
246 z2 = a2;
252 z2 = a1<<negCount;
258 z2 = a1;
264 z2 = a0<<negCount;
268 z2 = ( count == 128 ) ? a0 : ( a0 != 0 );
274 z2 |= ( a2 != 0 );
276 *z2Ptr = z2;
321 bits64 z0, z1, z2;
324 z2 = a2<<count;
[all …]
/netbsd-src/lib/libc/citrus/
H A Dcitrus_csmapper.c192 struct zone z1, z2; in parse_line() local
202 z2.begin = _bcs_skip_ws_len(z1.end, &len); in parse_line()
205 z2.end = _bcs_skip_nonws_len(z2.begin, &len); in parse_line()
211 "%.*s", (int)(z2.end-z2.begin), z2.begin); in parse_line()
/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Dvdev_queue.c302 const zio_t *z2 = x2; in vdev_queue_offset_compare() local
304 if (z1->io_offset < z2->io_offset) in vdev_queue_offset_compare()
306 if (z1->io_offset > z2->io_offset) in vdev_queue_offset_compare()
309 if (z1 < z2) in vdev_queue_offset_compare()
311 if (z1 > z2) in vdev_queue_offset_compare()
338 const zio_t *z2 = x2; in vdev_queue_timestamp_compare() local
340 if (z1->io_timestamp < z2->io_timestamp) in vdev_queue_timestamp_compare()
342 if (z1->io_timestamp > z2->io_timestamp) in vdev_queue_timestamp_compare()
345 if (z1->io_offset < z2->io_offset) in vdev_queue_timestamp_compare()
347 if (z1->io_offset > z2->io_offset) in vdev_queue_timestamp_compare()
[all …]
/netbsd-src/lib/libm/complex/
H A Dcasin.c44 double complex ca, ct, zz, z2; in __weak_alias() local
113 z2 = csqrt(zz); in __weak_alias()
115 zz = ct + z2; in __weak_alias()

123456