Home
last modified time | relevance | path

Searched refs:z1 (Results 1 – 25 of 143) sorted by relevance

123456

/netbsd-src/sys/lib/libkern/
H A Dsoftfloat-macros.h100 bits64 z0, z1; in shift64ExtraRightJamming() local
104 z1 = a1; in shift64ExtraRightJamming()
108 z1 = ( a0<<negCount ) | ( a1 != 0 ); in shift64ExtraRightJamming()
113 z1 = a0 | ( a1 != 0 ); in shift64ExtraRightJamming()
116 z1 = ( ( a0 | a1 ) != 0 ); in shift64ExtraRightJamming()
120 *z1Ptr = z1; in shift64ExtraRightJamming()
137 bits64 z0, z1; in shift128Right() local
141 z1 = a1; in shift128Right()
145 z1 = ( a0<<negCount ) | ( a1>>count ); in shift128Right()
149 z1 = ( count < 128 ) ? ( a0>>( count & 63 ) ) : 0; in shift128Right()
[all …]
/netbsd-src/external/lgpl3/mpc/dist/src/
H A Dasin.c31 mpc_asin_special (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd, mpc_ptr z1) in mpc_asin_special() argument
39 if (ey >= 0 || ((-ey) / 2 < mpfr_get_prec (mpc_realref (z1)))) in mpc_asin_special()
42 mpfr_const_pi (mpc_realref (z1), MPFR_RNDN); in mpc_asin_special()
43 mpfr_div_2exp (mpc_realref (z1), mpc_realref (z1), 1, MPFR_RNDN); /* exact */ in mpc_asin_special()
44 p = mpfr_get_prec (mpc_realref (z1)); in mpc_asin_special()
48 if (!mpfr_can_round (mpc_realref(z1), p, MPFR_RNDN, MPFR_RNDZ, in mpc_asin_special()
58 inex = mpfr_sqrt (mpc_imagref (z1), abs_y, MPFR_RNDN); /* error <= 1/2 ulp */ in mpc_asin_special()
60 MPFR_CHANGE_SIGN (mpc_imagref (z1)); in mpc_asin_special()
71 mpfr_nextbelow (mpc_imagref (z1)); in mpc_asin_special()
73 mpfr_nextabove (mpc_imagref (z1)); in mpc_asin_special()
[all …]
H A Dballs.c142 mpcb_neg (mpcb_ptr z, mpcb_srcptr z1) in mpcb_neg() argument
145 int overlap = (z == z1); in mpcb_neg()
148 p = mpcb_get_prec (z1); in mpcb_neg()
153 mpc_neg (z->c, z1->c, MPC_RNDNN); /* exact */ in mpcb_neg()
154 mpcr_set (z->r, z1->r); in mpcb_neg()
159 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()
[all …]
H A Dcmp_abs.c27 mpc_t z1, z2; in mpc_cmp_abs() local
55 z1 [0] = a [0]; in mpc_cmp_abs()
58 MPFR_CHANGE_SIGN (mpc_realref (z1)); in mpc_cmp_abs()
60 MPFR_CHANGE_SIGN (mpc_imagref (z1)); in mpc_cmp_abs()
65 if (mpfr_cmp (mpc_realref (z1), mpc_imagref (z1)) > 0) in mpc_cmp_abs()
66 mpfr_swap (mpc_realref (z1), mpc_imagref (z1)); 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 Dacos.c29 mpc_t z1; in mpc_acos() local
183 mpc_init3 (z1, p, p_im); /* we round directly the imaginary part to p_im, in mpc_acos()
202 mpfr_set_prec (mpc_realref(z1), p); in mpc_acos()
207 inex = mpc_asin (z1, op, rnd1); /* asin(z) */ in mpc_acos()
208 MPC_ASSERT (mpfr_sgn (mpc_imagref(z1)) * mpfr_sgn (mpc_imagref(op)) > 0); in mpc_acos()
210 e2 = mpfr_get_exp (mpc_realref(z1)); in mpc_acos()
211 mpfr_sub (mpc_realref(z1), pi_over_2, mpc_realref(z1), MPFR_RNDN); in mpc_acos()
212 if (!mpfr_zero_p (mpc_realref(z1))) in mpc_acos()
218 e1 -= mpfr_get_exp (mpc_realref(z1)); in mpc_acos()
222 mpfr_neg (mpc_imagref(z1), mpc_imagref(z1), MPFR_RNDN); /* exact */ in mpc_acos()
[all …]
/netbsd-src/external/lgpl3/mpc/dist/tests/
H A Dtsqr.c146 mpc_t z1; in reuse_bug() local
149 mpc_init2 (z1, 2); in reuse_bug()
151 mpfr_set_str (mpc_realref (z1), "0.11", 2, MPFR_RNDN); in reuse_bug()
152 mpfr_mul_2si (mpc_realref (z1), mpc_realref (z1), mpfr_get_emax (), MPFR_RNDN); in reuse_bug()
153 mpfr_set_ui (mpc_imagref (z1), 0, MPFR_RNDN); in reuse_bug()
154 mpc_conj (z1, z1, MPC_RNDNN); in reuse_bug()
155 mpc_sqr (z1, z1, MPC_RNDNN); in reuse_bug()
156 if (!mpfr_inf_p (mpc_realref (z1)) || mpfr_signbit (mpc_realref (z1)) in reuse_bug()
157 ||!mpfr_zero_p (mpc_imagref (z1)) || !mpfr_signbit (mpc_imagref (z1))) in reuse_bug()
160 MPC_OUT (z1); in reuse_bug()
[all …]
H A Dtgeneric.c912 mpc_t z1, z2, z3, z4, z5, zzzz, zzzz2; in tgeneric() local
919 mpc_init2 (z1, prec_max); in tgeneric()
999 mpc_set_prec (z1, prec); in tgeneric()
1000 test_default_random (z1, exp_min, exp_max, 128, zero_probability); in tgeneric()
1013 mpfr_set_ui (mpc_realref (z1), 0, GMP_RNDN); in tgeneric()
1016 mpfr_set_inf (mpc_realref (z1), +1); in tgeneric()
1019 mpfr_set_ui (mpc_imagref (z1), 0, GMP_RNDN); in tgeneric()
1022 mpfr_set_inf (mpc_imagref (z1), -1); in tgeneric()
1048 mpfr_set_ui (mpc_realref (z1), 0, GMP_RNDN); in tgeneric()
1051 mpfr_set_inf (mpc_realref (z1), +1); in tgeneric()
[all …]
/netbsd-src/lib/libc/softfloat/bits32/
H A Dsoftfloat-macros72 bits32 z0, z1;
76 z1 = a1;
80 z1 = ( a0<<negCount ) | ( a1>>count );
84 z1 = ( count < 64 ) ? ( a0>>( count & 31 ) ) : 0;
87 *z1Ptr = z1;
108 bits32 z0, z1;
112 z1 = a1;
116 z1 = ( a0<<negCount ) | ( a1>>count ) | ( ( a1<<negCount ) != 0 );
121 z1 = a0 | ( a1 != 0 );
124 z1 = ( a0>>( count & 31 ) ) | ( ( ( a0<<negCount ) | a1 ) != 0 );
[all …]
/netbsd-src/lib/libc/softfloat/bits64/
H A Dsoftfloat-macros109 bits64 z0, z1;
113 z1 = a1;
117 z1 = ( a0<<negCount ) | ( a1 != 0 );
122 z1 = a0 | ( a1 != 0 );
125 z1 = ( ( a0 | a1 ) != 0 );
129 *z1Ptr = z1;
147 bits64 z0, z1;
151 z1 = a1;
155 z1 = ( a0<<negCount ) | ( a1>>count );
159 z1 = ( count < 64 ) ? ( a0>>( count & 63 ) ) : 0;
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/config/lm32/
H A Dlm32.md399 cmpe %0, %z1, %2
400 cmpei %0, %z1, %2"
410 cmpne %0, %z1, %2
411 cmpnei %0, %z1, %2"
421 cmpg %0, %z1, %2
422 cmpgi %0, %z1, %2"
432 cmpge %0, %z1, %2
433 cmpgei %0, %z1, %2"
443 cmpgu %0, %z1, %2
444 cmpgui %0, %z1, %2"
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/lm32/
H A Dlm32.md399 cmpe %0, %z1, %2
400 cmpei %0, %z1, %2"
410 cmpne %0, %z1, %2
411 cmpnei %0, %z1, %2"
421 cmpg %0, %z1, %2
422 cmpgi %0, %z1, %2"
432 cmpge %0, %z1, %2
433 cmpgei %0, %z1, %2"
443 cmpgu %0, %z1, %2
444 cmpgui %0, %z1, %2"
[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
85 if (z1 == NULL) in cmpres()
90 else if (SAME_SIGN (inex1, inex2) && SAME_VAL (z1, z2)) in cmpres()
105 if (z1 == NULL) in cmpres()
112 mpfr_out_str (stdout, 16, 0, z1, MPFR_RNDN); in cmpres()
142 mpfr_srcptr x, mpfr_srcptr y, mpfr_srcptr z1, in test_others() argument
152 mpfr_init2 (z2, mpfr_get_prec (z1)); in test_others()
156 cmpres (spx, sx, sy, rnd, z1, inex1, z2, inex2, MPFR_FLAGS_ALL, in test_others()
168 cmpres (spx, sx, sy, rnd, z1, inex1, z2, inex2, flags, in test_others()
172 cmpres (spx, sx, sy, rnd, z1, inex1, z2, inex2, MPFR_FLAGS_ALL, in test_others()
[all …]
H A Dtgmpop.c481 mpz_t z1, z2; in test_specialz() local
485 mpz_init (z1); mpz_init(z2); in test_specialz()
486 mpz_fac_ui (z1, 19); /* 19!+1 fits perfectly in a 128 bits mantissa */ in test_specialz()
487 mpz_add_ui (z1, z1, 1); in test_specialz()
491 res = mpfr_set_z(x1, z1, MPFR_RNDN); in test_specialz()
511 mpz_func(z1, z1, z2); in test_specialz()
512 res = mpfr_set_z (x2, z1, MPFR_RNDN); in test_specialz()
525 mpz_out_str (stdout, 2, z1); in test_specialz()
530 mpz_set_ui (z1, 1); in test_specialz()
533 mpz_func (z1, z1, z2); in test_specialz()
[all …]
H A 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()
147 mpfr_set_ui (z1, 2, MPFR_RNDN); in test_small()
148 inex1 = mpfr_sqrt (z1, z1, MPFR_RNDN); in test_small()
149 inex2 = mpfr_mul (z1, z1, x, MPFR_RNDN); in test_small()
154 if (mpfr_cmp (z1, z2) != 0) in test_small()
158 mpfr_out_str (stdout, 2, 0, z1, MPFR_RNDN); in test_small()
177 mpfr_clears (x, y, z1, z2, (mpfr_ptr) 0); in test_small()
H A Dtfmma.c255 mpfr_t a, k, c, d, z1, z2; in overflow_tests() local
288 mpfr_init2 (z1, prec_z); in overflow_tests()
290 inex1 = mpfr_sqr (z1, k, rnd); in overflow_tests()
301 mpfr_equal_p (z1, z2))) in overflow_tests()
306 mpfr_dump (z1); in overflow_tests()
327 inex1 = mpfr_sqr (z1, a, rnd); in overflow_tests()
338 mpfr_equal_p (z1, z2))) in overflow_tests()
343 mpfr_dump (z1); in overflow_tests()
356 mpfr_clears (a, k, c, d, z1, z2, (mpfr_ptr) 0); in overflow_tests()
610 mpfr_t a, b, c, d, z1, z2; in double_rounding() local
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/config/mips/
H A Dmips-dspr2.md80 "absq_s.qb\t%0,%z1"
91 "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"
167 "cmpgdu.eq.qb\t%0,%z1,%z2"
181 "cmpgdu.lt.qb\t%0,%z1,%z2"
195 "cmpgdu.le.qb\t%0,%z1,%z2"
244 "mul_s.ph\t%0,%z1,%z2"
257 "mulq_rs.w\t%0,%z1,%z2"
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/mips/
H A Dmips-dspr2.md80 "absq_s.qb\t%0,%z1"
91 "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"
167 "cmpgdu.eq.qb\t%0,%z1,%z2"
181 "cmpgdu.lt.qb\t%0,%z1,%z2"
195 "cmpgdu.le.qb\t%0,%z1,%z2"
244 "mul_s.ph\t%0,%z1,%z2"
257 "mulq_rs.w\t%0,%z1,%z2"
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/lib/libdes/
H A Doqud_cksm.c79 DES_LONG z0,z1,t0,t1; in des_quad_cksum() local
97 z1=Q_B0((*seed)[4])|Q_B1((*seed)[5])|Q_B2((*seed)[6])|Q_B3((*seed)[7]); in des_quad_cksum()
117 t1=z1; in des_quad_cksum()
121 z1=((t0*((t1+NOISE)&0xffffffffL))&0xffffffffL)%0x7fffffffL; in des_quad_cksum()
129 (*lp).b = z1; in des_quad_cksum()
133 *lp++ = z1; in des_quad_cksum()
/netbsd-src/crypto/external/bsd/openssl/lib/libdes/
H A Doqud_cksm.c79 DES_LONG z0,z1,t0,t1; in des_quad_cksum() local
97 z1=Q_B0((*seed)[4])|Q_B1((*seed)[5])|Q_B2((*seed)[6])|Q_B3((*seed)[7]); in des_quad_cksum()
117 t1=z1; in des_quad_cksum()
121 z1=((t0*((t1+NOISE)&0xffffffffL))&0xffffffffL)%0x7fffffffL; in des_quad_cksum()
129 (*lp).b = z1; in des_quad_cksum()
133 *lp++ = z1; in des_quad_cksum()
/netbsd-src/sys/arch/hpcarm/dev/
H A Dwzero3_tp.c606 uint32_t x, y, z1 = 0, z2 = 0, rt; in max1233_readpos() local
630 z1 = wzero3ssp_ic_send(WZERO3_SSP_IC_MAX1233, in max1233_readpos()
632 DPRINTF(("%s: z1=%d\n", __func__, z1)); in max1233_readpos()
637 if (z1 >= 10) { in max1233_readpos()
640 rt *= (z2 / z1) - 1; in max1233_readpos()
699 int z0, z1; in ads7846_readpos() local
734 z1 = ads7846_sync(1, 0, cmd); in ads7846_readpos()
735 DPRINTF(("%s: z0 = %d, z1 = %d\n", __func__, z0, z1)); in ads7846_readpos()
738 if (z0 == 0 || (pos->x * (z1 - z0) / z0) >= 15000) in ads7846_readpos()
803 int z1, z2; in ak4184_readpos() local
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/des/
H A Dqud_cksm.c37 DES_LONG z0, z1, t0, t1; in DES_quad_cksum() local
49 z1 = Q_B0((*seed)[4]) | Q_B1((*seed)[5]) | Q_B2((*seed)[6]) | in DES_quad_cksum()
66 t1 = z1; in DES_quad_cksum()
70 z1 = ((t0 * ((t1 + NOISE) & 0xffffffffL)) & 0xffffffffL) % in DES_quad_cksum()
79 *lp++ = z1; in DES_quad_cksum()
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/des/
H A Dqud_cksm.c30 DES_LONG z0, z1, t0, t1; in DES_quad_cksum() local
42 z1 = Q_B0((*seed)[4]) | Q_B1((*seed)[5]) | Q_B2((*seed)[6]) | in DES_quad_cksum()
59 t1 = z1; in DES_quad_cksum()
63 z1 = ((t0 * ((t1 + NOISE) & 0xffffffffL)) & 0xffffffffL) % in DES_quad_cksum()
72 *lp++ = z1; in DES_quad_cksum()
/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
20 z1 = _mm_loadu_si128((__m128i *) (x + 4));
21 z6 = _mm_shuffle_epi32(z1, 0xaa);
22 z11 = _mm_shuffle_epi32(z1, 0xff);
23 z12 = _mm_shuffle_epi32(z1, 0x00);
24 z1 = _mm_shuffle_epi32(z1, 0x55);
36 orig1 = z1;
88 z1 = orig1;
113 y9 = z1;
149 z1 = _mm_xor_si128(z1, y1);
[all …]
/netbsd-src/external/historical/nawk/dist/testdir/
H A DT.clv94 $awk -v x=123 -v y=abc -v z1=10.99 'BEGIN { print x, y, z1 }' >foo2
102 $awk -v x=123 -v y=abc -v z1=10.99 -- 'BEGIN { print x, y, z1 }' >foo2
107 $awk -v x=123 -v y=abc -f foo0 -v z1=10.99 >foo2
117 $awk -f foo0 -v x=123 -v y=abc -v z1=10.99 >foo2
129 $awk -f foo0 -v x=123 -v y=abc -v z1=10.99 /dev/null x=4567 /dev/null >foo2
143 $awk -v x=123 -v y=abc -v z1=10.99 -f foo0 x=4567 /etc/passwd >foo2
/netbsd-src/tests/lib/libm/
H A Dt_fenv.c140 double z1, z2; in checkrounding() local
144 z1 = -1; in checkrounding()
148 z1 = -1 + ulp1/2; in checkrounding()
152 z1 = -1 + ulp1/2; in checkrounding()
156 z1 = -1; in checkrounding()
163 ATF_CHECK_EQ_MSG(y1, z1, "%s[-1 + ulp(1)/4] expected=%a actual=%a", in checkrounding()
164 name, y1, z1); in checkrounding()

123456