Home
last modified time | relevance | path

Searched refs:got (Results 1 – 25 of 1507) sorted by relevance

12345678910>>...61

/netbsd-src/external/lgpl3/gmp/dist/tests/mpf/
H A Dt-div.c27 check_one (const char *desc, mpf_ptr got, mpf_srcptr u, mpf_srcptr v) in check_one() argument
29 if (! refmpf_validate_division ("mpf_div", got, u, v)) in check_one()
45 mpf_t got, u, v; in check_rand() local
48 mpf_init (got); in check_rand()
57 refmpf_set_prec_limbs (got, prec); in check_rand()
79 mpf_div (got, u, v); in check_rand()
80 check_one ("separate", got, u, v); in check_rand()
83 prec = refmpf_set_overlap (got, u); in check_rand()
84 mpf_div (got, got, v); in check_rand()
85 check_one ("dst == u", got, u, v); in check_rand()
[all …]
H A Dt-ui_div.c27 check_one (const char *desc, mpf_ptr got, unsigned long u, mpf_srcptr v) in check_one() argument
44 if (! refmpf_validate_division ("mpf_ui_div", got, uf, v)) in check_one()
60 mpf_t got, v; in check_rand() local
63 mpf_init (got); in check_rand()
70 refmpf_set_prec_limbs (got, prec); in check_rand()
92 mpf_ui_div (got, u, v); in check_rand()
93 check_one ("separate", got, u, v); in check_rand()
98 prec = refmpf_set_overlap (got, v); in check_rand()
99 mpf_ui_div (got, u, got); in check_rand()
100 check_one ("overlap src==dst", got, u, v); in check_rand()
[all …]
H A Dt-mul_ui.c27 check_one (const char *desc, mpf_ptr got, mpf_srcptr u, unsigned long v) in check_one() argument
33 MPF_CHECK_FORMAT (got); in check_one()
47 if (! refmpf_validate ("mpf_mul_ui", got, want)) in check_one()
64 mpf_t got, u; in check_rand() local
73 mpf_init (got); in check_rand()
80 refmpf_set_prec_limbs (got, prec); in check_rand()
98 mpf_mul_ui (got, u, v); in check_rand()
99 check_one ("separate", got, u, v); in check_rand()
104 prec = refmpf_set_overlap (got, u); in check_rand()
105 mpf_mul_ui (got, got, v); in check_rand()
[all …]
H A Dt-set_q.c27 check_one (mpf_ptr got, mpq_srcptr q) in check_one() argument
31 mpf_set_q (got, q); in check_one()
41 if (! refmpf_validate_division ("mpf_set_q", got, n, d)) in check_one()
55 mpf_t got; in check_rand() local
59 mpf_init (got); in check_rand()
66 refmpf_set_prec_limbs (got, prec); in check_rand()
82 check_one (got, q); in check_rand()
85 mpf_clear (got); in check_rand()
92 mpf_t got; in check_various() local
95 mpf_init (got); in check_various()
[all …]
H A Dt-get_si.c59 long got; in check_data() local
66 got = mpf_get_si (f); in check_data()
67 if (got != data[i].want) in check_data()
75 printf (" got %ld (0x%lX)\n", got, got); in check_data()
89 long got; in check_max() local
94 if (got != want) \ in check_max()
100 printf (" got %ld, hex %lX\n", got, got); \ in check_max()
107 got = mpf_get_si (f); in check_max()
112 got = mpf_get_si (f); in check_max()
179 unsigned long got; in check_limbdata() local
[all …]
H A Dt-trunc.c27 check_print (mpf_srcptr src, mpf_srcptr got, mpf_srcptr want) in check_print() argument
31 mpf_trace ("got ", got); in check_print()
34 printf ("got size=%d exp=%ld\n", SIZ(got), EXP(got)); in check_print()
35 mpn_trace (" limbs=", PTR(got), (mp_size_t) ABSIZ(got)); in check_print()
44 mpf_t got; in check_one() local
46 mpf_init2 (got, mpf_get_prec (trunc)); in check_one()
47 ASSERT_ALWAYS (PREC(got) == PREC(trunc)); in check_one()
48 ASSERT_ALWAYS (PREC(got) == PREC(ceil)); in check_one()
49 ASSERT_ALWAYS (PREC(got) == PREC(floor)); in check_one()
52 mpf_set_ui (got, 54321L); /* initial junk */ \ in check_one()
[all …]
H A Dt-get_d_2exp.c30 double got, want; in check_data() local
42 got = mpf_get_d_2exp (&got_exp, f); in check_data()
43 if (got != 0 || got_exp != 0) in check_data()
47 d_trace (" got ", got); in check_data()
65 got = mpf_get_d_2exp (&got_exp, f); in check_data()
66 if (got != want || got_exp != exp) in check_data()
71 d_trace (" got ", got); in check_data()
88 double got; in check_round() local
105 got = mpf_get_d_2exp (&got_exp, f); in check_round()
106 if (got < 0.5 || got >= 1.0) in check_round()
[all …]
/netbsd-src/external/lgpl3/gmp/dist/tests/mpz/
H A Dt-aorsmul.c35 mpz_t want, got; in check_one_inplace() local
38 mpz_init (got); in check_one_inplace()
42 mpz_set (got, w); in check_one_inplace()
43 mpz_addmul (got, got, y); in check_one_inplace()
44 MPZ_CHECK_FORMAT (got); in check_one_inplace()
45 if (mpz_cmp (want, got) != 0) in check_one_inplace()
52 mpz_trace ("got ", got); in check_one_inplace()
58 mpz_set (got, w); in check_one_inplace()
59 mpz_submul (got, got, y); in check_one_inplace()
60 MPZ_CHECK_FORMAT (got); in check_one_inplace()
[all …]
H A Dt-get_d_2exp.c30 double got, want; in check_zero() local
37 got = mpz_get_d_2exp (&got_exp, z); in check_zero()
38 if (got != want || got_exp != want_exp) in check_zero()
43 d_trace (" got ", got); in check_zero()
59 double got, want; in check_onebit() local
71 got = mpz_get_d_2exp (&got_exp, z); in check_onebit()
72 if (got != want || got_exp != want_exp) in check_onebit()
77 d_trace (" got ", got); in check_onebit()
87 got = mpz_get_d_2exp (&got_exp, z); in check_onebit()
88 if (got != want || got_exp != want_exp) in check_onebit()
[all …]
H A Dt-bit.c44 mpz_t got, want; in check_clr_extend() local
48 mpz_init (got); in check_clr_extend()
56 mpz_set_si (got, 1L); in check_clr_extend()
57 mpz_mul_2exp (got, got, 10*GMP_NUMB_BITS); in check_clr_extend()
58 mpz_sub_ui (got, got, 1L); in check_clr_extend()
61 mpz_set_si (got, -1L); in check_clr_extend()
62 mpz_mul_2exp (got, got, i*GMP_NUMB_BITS-1); in check_clr_extend()
66 mpz_clrbit (got, i*GMP_NUMB_BITS-1); in check_clr_extend()
68 mpz_combit (got, i*GMP_NUMB_BITS-1); in check_clr_extend()
69 MPZ_CHECK_FORMAT (got); in check_clr_extend()
[all …]
H A Dt-mul_i.c27 mpz_t got, want, x; variable
32 if (mpz_cmp (got, want) != 0) in compare_si()
37 mpz_trace (" got ", got); in compare_si()
46 if (mpz_cmp (got, want) != 0) in compare_ui()
51 mpz_trace (" got ", got); in compare_ui()
65 mpz_mul_si (got, x, y); in check_samples()
71 mpz_mul_si (got, x, y); in check_samples()
77 mpz_mul_si (got, x, y); in check_samples()
83 mpz_mul_si (got, x, y); in check_samples()
89 mpz_mul_si (got, x, y); in check_samples()
[all …]
H A Dt-io_raw.c63 mpz_t want, got; in check_in() local
69 mpz_init (got); in check_in()
100 got_ret = mpz_inp_raw (got, fp); in check_in()
104 MPZ_CHECK_FORMAT (got); in check_in()
111 if (mpz_cmp (got, want) != 0) in check_in()
121 mpz_trace (" got ", got); in check_in()
134 mpz_clear (got); in check_in()
143 char want[256], got[256], *p; in check_out() local
174 got_read = fread (got, 1, sizeof(got), fp); in check_out()
188 if (memcmp (want, got, want_len) != 0) in check_out()
[all …]
H A Dt-pow.c30 mpz_t got; in check_one() local
32 mpz_init (got); in check_one()
36 mpz_pow_ui (got, base, exp); in check_one()
37 if (mpz_cmp (got, want)) in check_one()
42 mpz_trace (" got ", got); in check_one()
47 mpz_set (got, base); in check_one()
48 mpz_pow_ui (got, got, exp); in check_one()
49 if (mpz_cmp (got, want)) in check_one()
54 mpz_trace (" got ", got); in check_one()
62 mpz_ui_pow_ui (got, base_u, exp); in check_one()
[all …]
H A Dt-lcm.c32 mpz_t got, x, y; in check_all() local
35 mpz_init (got); in check_all()
54 { mpz_set (got, x); mpz_lcm (got, got, y); } in check_all()
56 mpz_lcm (got, x, y); in check_all()
57 MPZ_CHECK_FORMAT (got); in check_all()
59 if (mpz_cmp (got, want) != 0) in check_all()
65 mpz_trace ("got", got); in check_all()
74 { mpz_set (got, x); mpz_lcm_ui (got, got, yu); } in check_all()
76 mpz_lcm_ui (got, x, yu); in check_all()
78 if (mpz_cmp (got, want) != 0) in check_all()
[all …]
H A Dt-get_si.c44 long got; in check_data() local
51 got = mpz_get_si (n); in check_data()
52 if (got != data[i].want) in check_data()
58 printf (" got %ld (0x%lX)\n", got, got); in check_data()
72 long got; in check_max() local
77 if (got != want) \ in check_max()
83 printf (" got %ld, hex %lX\n", got, got); \ in check_max()
90 got = mpz_get_si (n); in check_max()
95 got = mpz_get_si (n); in check_max()
/netbsd-src/external/lgpl3/gmp/dist/tests/mpn/
H A Dt-aors_1.c33 refmpn_random (got, data[i].size); \
34 got[data[i].size] = MAGIC; \
39 refmpn_copyi (got, data[i].src, data[i].size); \
40 got[data[i].size] = MAGIC; \
47 got, data[i].want, data[i].size); \
58 mp_srcptr got, mp_srcptr want, mp_size_t size) in verify() argument
60 if (got[size] != MAGIC) in verify()
66 if (got_c != want_c || ! refmpn_equal_anynail (got, want, size)) in verify()
71 mpn_trace (" got", got, size); in verify()
133 mp_limb_t got[ASIZE]; in check_add_1() local
[all …]
H A Dt-get_d.c74 double got, want; in check_onebit() local
103 got = mpn_get_d (np, nsize, sign, exp); in check_onebit()
104 if (got != want) in check_onebit()
114 d_trace (" got ", got); in check_onebit()
128 double got, want; in check_twobit() local
147 got = mpn_get_d (np, nsize, sign, 0); in check_twobit()
148 if (got != want) in check_twobit()
155 d_trace (" got ", got); in check_twobit()
181 double got; in check_underflow() local
194 got = mpn_get_d (np, nsize, sign, exp); in check_underflow()
[all …]
/netbsd-src/external/lgpl3/mpc/dist/tests/
H A Dtgeneric.c511 reuse_cc (mpc_function* function, mpc_srcptr z, mpc_ptr got, mpc_ptr expected) in reuse_cc() argument
515 mpc_set (got, z, MPC_RNDNN); /* exact */ in reuse_cc()
517 function->pointer.CC (got, got, MPC_RNDNN); in reuse_cc()
518 if (!same_mpc_value (got, expected, ks)) in reuse_cc()
523 MPC_OUT (got); in reuse_cc()
570 mpfr_t got; in reuse_fc() local
571 got[0] = mpc_realref(x)[0]; /* display sensible name */ in reuse_fc()
575 MPFR_OUT (got); in reuse_fc()
583 mpfr_t got; in reuse_fc() local
584 got[0] = mpc_imagref(x)[0]; /* display sensible name */ in reuse_fc()
[all …]
H A Dtmul_i.c27 mpc_t z, expected, got; in check_different_precisions() local
32 mpc_init2(got, 128); in check_different_precisions()
37 mpfr_set_prec (mpc_imagref (got), 32); in check_different_precisions()
44 mpc_set (got, z, MPC_RNDNN); in check_different_precisions()
45 res = mpc_mul_i (got, got, +1, MPC_RNDNN); in check_different_precisions()
53 if (mpc_cmp(got, expected) != 0) in check_different_precisions()
59 MPC_OUT (got); in check_different_precisions()
65 mpc_set (got, z, MPC_RNDNN); in check_different_precisions()
66 mpc_mul_i (got, got, -1, MPC_RNDNN); in check_different_precisions()
67 if (mpc_cmp(got, expected) != 0) in check_different_precisions()
[all …]
H A Dcomparisons.c25 same_mpfr_value (mpfr_ptr got, mpfr_ptr ref, int known_sign) in same_mpfr_value() argument
29 if (mpfr_nan_p (got)) in same_mpfr_value()
31 if (mpfr_inf_p (got)) in same_mpfr_value()
33 (!known_sign || mpfr_signbit (got) == mpfr_signbit (ref)); in same_mpfr_value()
34 if (mpfr_zero_p (got)) in same_mpfr_value()
36 (!known_sign || mpfr_signbit (got) == mpfr_signbit (ref)); in same_mpfr_value()
37 return mpfr_cmp (got, ref) == 0; in same_mpfr_value()
41 same_mpc_value (mpc_ptr got, mpc_ptr ref, known_signs_t known_signs) in same_mpc_value() argument
43 return same_mpfr_value (mpc_realref (got), mpc_realref (ref), known_signs.re) in same_mpc_value()
44 && same_mpfr_value (mpc_imagref (got), mpc_imagref (ref), known_signs.im); in same_mpc_value()
H A Dcheck_data.c28 check_param (mpc_operand_t* got, mpc_operand_t* expected, mpc_param_t t) in check_param() argument
33 return got->i == expected->i; in check_param()
35 return got->ui == expected->ui; in check_param()
37 return got->si == expected->si; in check_param()
39 return got->d == expected->d; in check_param()
42 return mpz_cmp (got->mpz, expected->mpz); in check_param()
44 return mpq_cmp (got->mpq, expected->mpq); in check_param()
46 return mpf_cmp (got->mpf, expected->mpf); in check_param()
50 || got->mpfr_inex == expected->mpfr_inex; in check_param()
53 return tpl_check_mpfr_data (got->mpfr, in check_param()
[all …]
/netbsd-src/external/lgpl3/mpfr/dist/
H A Dacinclude.m41201 # got[] holds a sliding window of bytes read the input. got[0] is the most
1202 # recent byte read, and got[31] the oldest byte read, so when looking to
1210 got[i+1] = got[i];
1211 got[0] = $f;
1214 if (got[7] != "376") continue
1215 if (got[6] != "334") continue
1216 if (got[5] != "272") continue
1217 if (got[4] != "230") continue
1218 if (got[3] != "166") continue
1219 if (got[2] != "124") continue
[all …]
/netbsd-src/external/lgpl3/gmp/dist/tests/misc/
H A Dt-printf.c72 char got[MAX_OUTPUT]; in check_plain() local
112 ASSERT_ALWAYS (want_len < sizeof(got)); in check_plain()
114 got_len = vsprintf (got, fmt, ap); in check_plain()
116 if (got_len != want_len || strcmp (got, want) != 0) in check_plain()
120 printf (" got |%s|\n", got); in check_plain()
134 char got[MAX_OUTPUT]; in check_vsprintf() local
138 got_len = gmp_vsprintf (got, fmt, ap); in check_vsprintf()
140 if (got_len != want_len || strcmp (got, want) != 0) in check_vsprintf()
144 printf (" got |%s|\n", got); in check_vsprintf()
155 char got[MAX_OUTPUT]; in check_vfprintf() local
[all …]
/netbsd-src/usr.bin/make/unit-tests/
H A Dvarmod-edge.mk17 . warning expected "${EXP}", got "${MOD}"
28 . warning expected "${EXP}", got "${MOD}"
42 . warning expected "${EXP}", got "${MOD}"
61 . warning expected "${EXP}", got "${MOD}"
74 . warning expected "${EXP}", got "${MOD}"
89 . warning expected "${EXP}", got "${MOD}"
107 . warning expected "${EXP}", got "${MOD}"
121 . warning expected "${EXP}", got "${MOD}"
132 . warning expected "${EXP}", got "${MOD}"
143 . warning expected "${EXP}", got "
[all...]
/netbsd-src/external/lgpl3/gmp/dist/demos/expr/
H A Dt-expr.c278 mpz_t a, b, got, want; in check_z() local
281 mpz_init (got); in check_z()
295 ret = mpz_expr (got, data[i].base, data[i].expr, a, b, NULL); in check_z()
319 if (mpz_cmp (got, want) != 0) in check_z()
322 printf (" got "); mpz_out_str (stdout, 10, got); in check_z()
333 mpz_clear (got); in check_z()
349 mpq_t a, b, got, want; in check_q() local
352 mpq_init (got); in check_q()
369 ret = mpq_expr (got, data[i].base, data[i].expr, a, b, NULL); in check_q()
395 if (mpq_cmp (got, want) != 0) in check_q()
[all …]

12345678910>>...61