Home
last modified time | relevance | path

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

123

/netbsd/src/external/lgpl3/mpfr/dist/tests/
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 …]
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()
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 …]
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 …]
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()
Dtgmpop.c481 mpz_t z1, z2; in test_specialz() local
485 mpz_init (z1); mpz_init(z2); in test_specialz()
488 mpz_fac_ui (z2, 20); /* 20!+1 fits perfectly in a 128 bits mantissa */ in test_specialz()
489 mpz_add_ui (z2, z2, 1); in test_specialz()
497 mpfr_set_z (x2, z2, MPFR_RNDN); in test_specialz()
505 res = mpfr_func(x1, x1, z2, MPFR_RNDN); in test_specialz()
511 mpz_func(z1, z1, z2); in test_specialz()
531 mpz_set_ui (z2, 0); in test_specialz()
533 mpz_func (z1, z1, z2); in test_specialz()
534 res = mpfr_func(x1, x1, z2, MPFR_RNDN); in test_specialz()
[all …]
Dtsub.c1024 mpfr_t x, y, z1, z2; in bug20180215() local
1030 mpfr_inits2 (p, x, y, z1, z2, (mpfr_ptr) 0); in bug20180215()
1039 test_sub (z2, x, y, r[i]); in bug20180215()
1040 if (! mpfr_equal_p (z1, z2)) in bug20180215()
1045 printf ("got "); mpfr_dump (z2); in bug20180215()
1049 mpfr_clears (x, y, z1, z2, (mpfr_ptr) 0); in bug20180215()
1056 mpfr_t x, y, z1, z2; in bug20180216() local
1061 mpfr_inits2 (p, x, y, z1, z2, (mpfr_ptr) 0); in bug20180216()
1071 inex = mpfr_add (z2, y, z1, MPFR_RNDN); in bug20180216()
1073 MPFR_ASSERTN (mpfr_equal_p (z2, x)); /* consistency check */ in bug20180216()
[all …]
Dthypot.c139 mpfr_t x, y, z1, z2; in test_small() local
144 mpfr_inits2 (8, x, y, z1, z2, (mpfr_ptr) 0); in test_small()
152 inex2 = mpfr_hypot (z2, x, y, MPFR_RNDN); in test_small()
154 if (mpfr_cmp (z1, z2) != 0) in test_small()
160 mpfr_out_str (stdout, 2, 0, z2, MPFR_RNDN); in test_small()
177 mpfr_clears (x, y, z1, z2, (mpfr_ptr) 0); in test_small()
/netbsd/src/external/lgpl3/mpc/dist/src/
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 …]
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/
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 …]
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/
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/
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/lib/libc/softfloat/bits32/
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/tests/lib/libm/
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/
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/
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/
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/
Dcasinl.c44 long double complex ca, ct, zz, z2; in __weak_alias() local
113 z2 = csqrtl(zz); in __weak_alias()
115 zz = ct + z2; in __weak_alias()
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()
Dcasinf.c44 float complex ca, ct, zz, z2; in __weak_alias() local
113 z2 = csqrtf(zz); in __weak_alias()
115 zz = ct + z2; in __weak_alias()
/netbsd/src/sys/arch/hpcarm/dev/
Dwzero3_tp.c606 uint32_t x, y, z1 = 0, z2 = 0, rt; in max1233_readpos() local
633 z2 = wzero3ssp_ic_send(WZERO3_SSP_IC_MAX1233, in max1233_readpos()
635 DPRINTF(("%s: z2=%d\n", __func__, z2)); in max1233_readpos()
640 rt *= (z2 / z1) - 1; in max1233_readpos()
803 int z1, z2; in ak4184_readpos() local
823 z2 = ak4184_sync(1, 0, in ak4184_readpos()
825 DPRINTF(("%s: z2=%d\n", __func__, z2)); in ak4184_readpos()
830 rt *= (z2 / z1) - 1; in ak4184_readpos()
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/ec/
Dcurve25519.c214 fe64 x1, x2, z2, x3, z3, tmp0, tmp1; in x25519_scalar_mulx() local
225 fe64_0(z2); in x25519_scalar_mulx()
234 fe64_cswap(z2, z3, swap); in x25519_scalar_mulx()
237 fe64_sub(tmp1, x2, z2); in x25519_scalar_mulx()
238 fe64_add(x2, x2, z2); in x25519_scalar_mulx()
239 fe64_add(z2, x3, z3); in x25519_scalar_mulx()
241 fe64_mul(z2, z2, tmp1); in x25519_scalar_mulx()
244 fe64_add(x3, z3, z2); in x25519_scalar_mulx()
245 fe64_sub(z2, z3, z2); in x25519_scalar_mulx()
248 fe64_sqr(z2, z2); in x25519_scalar_mulx()
[all …]
/netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
Dcomplex-parts.c35 float complex z2 = 2.5 - 5.5 * I; in main() local
43 keep_around (&z2); in main()

123