| /src/external/lgpl3/mpc/dist/tests/ |
| comparisons.c | 25 same_mpfr_value (mpfr_ptr got, mpfr_ptr ref, int known_sign) 29 if (mpfr_nan_p (got)) 31 if (mpfr_inf_p (got)) 33 (!known_sign || mpfr_signbit (got) == mpfr_signbit (ref)); 34 if (mpfr_zero_p (got)) 36 (!known_sign || mpfr_signbit (got) == mpfr_signbit (ref)); 37 return mpfr_cmp (got, ref) == 0; 41 same_mpc_value (mpc_ptr got, mpc_ptr ref, known_signs_t known_signs) 43 return same_mpfr_value (mpc_realref (got), mpc_realref (ref), known_signs.re) 44 && same_mpfr_value (mpc_imagref (got), mpc_imagref (ref), known_signs.im) [all...] |
| tmul_i.c | 27 mpc_t z, expected, got; local 32 mpc_init2(got, 128); 37 mpfr_set_prec (mpc_imagref (got), 32); 44 mpc_set (got, z, MPC_RNDNN); 45 res = mpc_mul_i (got, got, +1, MPC_RNDNN); 49 " got (re=%2d, im=%2d)\nexpected (re= 0, im=-1)\n", 53 if (mpc_cmp(got, expected) != 0) 59 MPC_OUT (got); 65 mpc_set (got, z, MPC_RNDNN) [all...] |
| tcos.c | 27 mpc_t op, expected, got; local 30 mpc_init2 (got, 324); 41 mpc_cos (got, op, MPC_RNDNN); 42 if (mpc_cmp (got, expected) != 0) 43 TEST_FAILED ("mpc_cos", op, got, expected, MPC_RNDNN); 45 mpc_clear (got);
|
| /src/external/lgpl3/gmp/dist/tests/ |
| t-bswap.c | 30 mp_limb_t src, want, got; local 42 BSWAP_LIMB (got, src); 43 if (got != want) 49 mpn_trace (" got ", &got, (mp_size_t) 1); 53 BSWAP_LIMB_FETCH (got, &src); 54 if (got != want) 60 BSWAP_LIMB_STORE (&got, src); 61 if (got != want)
|
| t-count_zeros.c | 29 int got; local 30 count_leading_zeros (got, n); 31 if (got != want) 36 printf (" got %d\n", got); 44 int got; local 45 count_trailing_zeros (got, n); 46 if (got != want) 51 printf (" got %d\n", got); [all...] |
| t-popc.c | 30 mp_limb_t src, want, got; local 41 popc_limb (got, src); 42 if (got != want) 48 mpn_trace (" got ", &got, (mp_size_t) 1); 60 popc_limb (got, src); 61 if (got != want) 72 popc_limb (got, src); 73 if (got != want)
|
| t-parity.c | 28 int got; local 29 ULONG_PARITY (got, n); 30 if (got != want) 35 printf (" got %d\n", got);
|
| /src/external/lgpl3/gmp/dist/tests/mpf/ |
| t-div.c | 27 check_one (const char *desc, mpf_ptr got, mpf_srcptr u, mpf_srcptr v) 29 if (! refmpf_validate_division ("mpf_div", got, u, v)) 45 mpf_t got, u, v; local 48 mpf_init (got); 55 /* got precision */ 57 refmpf_set_prec_limbs (got, prec); 79 mpf_div (got, u, v); 80 check_one ("separate", got, u, v); 83 prec = refmpf_set_overlap (got, u); 84 mpf_div (got, got, v) 109 mpf_t got; local 146 mpf_t got, u, v; local [all...] |
| t-mul_ui.c | 27 check_one (const char *desc, mpf_ptr got, mpf_srcptr u, unsigned long v) 33 MPF_CHECK_FORMAT (got); 47 if (! refmpf_validate ("mpf_mul_ui", got, want)) 64 mpf_t got, u; local 73 mpf_init (got); 78 /* got precision */ 80 refmpf_set_prec_limbs (got, prec); 98 mpf_mul_ui (got, u, v); 99 check_one ("separate", got, u, v); 104 prec = refmpf_set_overlap (got, u) 119 mpf_t u, got, want; local [all...] |
| t-ui_div.c | 27 check_one (const char *desc, mpf_ptr got, unsigned long u, mpf_srcptr v) 44 if (! refmpf_validate_division ("mpf_ui_div", got, uf, v)) 60 mpf_t got, v; local 63 mpf_init (got); 68 /* got precision */ 70 refmpf_set_prec_limbs (got, prec); 92 mpf_ui_div (got, u, v); 93 check_one ("separate", got, u, v); 98 prec = refmpf_set_overlap (got, v); 99 mpf_ui_div (got, u, got) 113 mpf_t got, v; local [all...] |
| t-set_q.c | 27 check_one (mpf_ptr got, mpq_srcptr q) 31 mpf_set_q (got, q); 41 if (! refmpf_validate_division ("mpf_set_q", got, n, d)) 55 mpf_t got; local 59 mpf_init (got); 66 refmpf_set_prec_limbs (got, prec); 82 check_one (got, q); 85 mpf_clear (got); 92 mpf_t got; local 95 mpf_init (got); [all...] |
| t-get_d_2exp.c | 30 double got, want; local 42 got = mpf_get_d_2exp (&got_exp, f); 43 if (got != 0 || got_exp != 0) 47 d_trace (" got ", got); 48 printf (" got exp %ld\n", got_exp); 65 got = mpf_get_d_2exp (&got_exp, f); 66 if (got != want || got_exp != exp) 71 d_trace (" got ", got); 88 double got; local [all...] |
| /src/sys/arch/i386/stand/lib/ |
| pread.c | 54 ssize_t got; local 58 got = read(fd, buf, count); 59 if (got < 0) 63 vpbcopy(buf, dest, got); 65 dest += got; 66 rsize -= got; 67 if (got < count)
|
| /src/external/lgpl3/gmp/dist/tests/mpz/ |
| t-get_d.c | 31 double got, want; local 41 got = mpz_get_d (z); 42 if (got != 0) 53 got = mpz_get_d (z); 55 if (got != want) 60 printf (" got %.20g\n", got);
|
| t-get_si.c | 44 long got; local 51 got = mpz_get_si (n); 52 if (got != data[i].want) 58 printf (" got %ld (0x%lX)\n", got, got); 72 long got; local 77 if (got != want) \ 83 printf (" got %ld, hex %lX\n", got, got); [all...] |
| t-get_d_2exp.c | 30 double got, want; local 37 got = mpz_get_d_2exp (&got_exp, z); 38 if (got != want || got_exp != want_exp) 43 d_trace (" got ", got); 45 printf (" got exp %ld\n", got_exp); 59 double got, want; local 71 got = mpz_get_d_2exp (&got_exp, z); 72 if (got != want || got_exp != want_exp) 77 d_trace (" got ", got) 109 double got; local 165 double got; local [all...] |
| t-aorsmul.c | 35 mpz_t want, got; local 38 mpz_init (got); 42 mpz_set (got, w); 43 mpz_addmul (got, got, y); 44 MPZ_CHECK_FORMAT (got); 45 if (mpz_cmp (want, got) != 0) 52 mpz_trace ("got ", got); 58 mpz_set (got, w) 74 mpz_t want, got; local 136 mpz_t want, got; local 176 mpz_t want, got; local [all...] |
| t-mul_i.c | 27 mpz_t got, want, x; variable 32 if (mpz_cmp (got, want) != 0) 37 mpz_trace (" got ", got); 46 if (mpz_cmp (got, want) != 0) 51 mpz_trace (" got ", got); 65 mpz_mul_si (got, x, y); 71 mpz_mul_si (got, x, y); 77 mpz_mul_si (got, x, y) [all...] |
| /src/external/lgpl3/gmp/dist/tests/mpn/ |
| t-asmtype.c | 52 mp_limb_t got[3]; local 54 mpn_add_n (got, x, y, (mp_size_t) 3); 56 if (refmpn_cmp (got, want, (mp_size_t) 3) != 0)
|
| /src/external/lgpl3/gmp/dist/tests/rand/ |
| t-urbui.c | 31 unsigned long bits, limit, got; local 36 /* will demand got < limit */ 41 got = gmp_urandomb_ui (rstate, bits); 42 if (got >= limit) 48 printf (" got: %#lx\n", got);
|
| t-urmui.c | 42 unsigned long got, n; local 51 got = gmp_urandomm_ui (rstate, n); 52 if (got >= n) 57 printf (" got: %#lx\n", got);
|
| /src/lib/libwrap/ |
| misc.c | 32 int got; local 36 got = strlen(ptr); 37 if (got >= 1 && ptr[got - 1] == '\n') { 39 if (got >= 2 && ptr[got - 2] == '\\') { 40 got -= 2; 45 ptr += got; 46 len -= got;
|
| /src/external/gpl3/gcc/dist/libgcc/config/pa/ |
| fptr.c | 70 must be linked into all binaries in order access the got table of 83 unsigned int *got, *iptr, reloc_offset; local 104 got = (unsigned int *) plabel[0]; 105 if (((unsigned int) got & 3) != 0 106 || !_dl_read_access_allowed ((unsigned int)got)) 112 got = (unsigned int *) (plabel[0] + GOT_FROM_PLT_STUB); 115 if (got != &_GLOBAL_OFFSET_TABLE_) 125 iptr = (unsigned int *) (got[-2] + fixup_branch_offset[i]); 142 fixup_plabel[1] = got[-1]; /* ltp for fixup */ 145 /* Call fixup to resolve the function address. got[1] contains th [all...] |
| /src/external/gpl3/gcc.old/dist/libgcc/config/pa/ |
| fptr.c | 70 must be linked into all binaries in order access the got table of 83 unsigned int *got, *iptr, reloc_offset; local 104 got = (unsigned int *) plabel[0]; 105 if (((unsigned int) got & 3) != 0 106 || !_dl_read_access_allowed ((unsigned int)got)) 112 got = (unsigned int *) (plabel[0] + GOT_FROM_PLT_STUB); 115 if (got != &_GLOBAL_OFFSET_TABLE_) 125 iptr = (unsigned int *) (got[-2] + fixup_branch_offset[i]); 142 fixup_plabel[1] = got[-1]; /* ltp for fixup */ 145 /* Call fixup to resolve the function address. got[1] contains th [all...] |
| /src/external/ibm-public/postfix/dist/src/util/ |
| normalize_ws.c | 77 char *got; local 84 got = normalize_ws(input); 85 if (got != input) { 86 msg_warn("got %p, want %p", got, input); 89 if (memcmp(got, want, BUFLEN) != 0) { 90 msg_warn("got '{0x%02x 0x%02x}', want '{0x%02x 0x%02x}", 91 got[0], got[1], want[0], want[1]); 101 char *got; local [all...] |