Searched refs:inexact (Results 1 - 25 of 183) sorted by relevance

12345678

/netbsd-current/external/lgpl3/mpfr/dist/src/
H A Dcache.c61 int inexact, sign; local
103 cache->inexact = (*cache->func) (cache->x, MPFR_RNDN);
117 x and x+ulp(x) if cache->inexact < 0,
118 x-ulp(x) and x if cache->inexact > 0,
130 MPFR_RNDRAW_GEN (inexact, dest,
132 if (MPFR_UNLIKELY (cache->inexact == 0))
136 inexact = -sign;
142 else if (cache->inexact < 0)
144 else /* cache->inexact > 0 */
146 inexact
[all...]
H A Dui_pow.c29 int inexact; local
35 inexact = mpfr_set_ui (t, n, MPFR_RNDN);
36 MPFR_ASSERTD (inexact == 0);
37 inexact = mpfr_pow (y, t, x, rnd_mode);
40 return mpfr_check_range (y, inexact, rnd_mode);
H A Ddiv_d.c29 int inexact; local
42 inexact = mpfr_set_d (d, c, rnd_mode);
43 MPFR_ASSERTD (inexact == 0);
46 inexact = mpfr_div (a, b, d, rnd_mode);
50 return mpfr_check_range (a, inexact, rnd_mode);
H A Dsub_d.c29 int inexact; local
42 inexact = mpfr_set_d (d, c, rnd_mode);
43 MPFR_ASSERTD (inexact == 0);
46 inexact = mpfr_sub (a, b, d, rnd_mode);
50 return mpfr_check_range (a, inexact, rnd_mode);
H A Dd_sub.c29 int inexact; local
41 inexact = mpfr_set_d (d, b, rnd_mode);
42 MPFR_ASSERTD (inexact == 0);
45 inexact = mpfr_sub (a, d, c, rnd_mode);
49 return mpfr_check_range (a, inexact, rnd_mode);
H A Dd_div.c29 int inexact; local
41 inexact = mpfr_set_d (d, b, rnd_mode);
42 MPFR_ASSERTD (inexact == 0);
45 inexact = mpfr_div (a, d, c, rnd_mode);
49 return mpfr_check_range (a, inexact, rnd_mode);
H A Dfactorial.c38 int round, inexact; local
67 inexact = mpfr_set_ui (t, 1, rnd);
71 /* assume the first inexact product gives the sign
73 if (inexact == 0)
74 inexact = round;
79 round = !inexact || MPFR_CAN_ROUND (t, err, Ny, rnd_mode);
83 /* If inexact = 0, then t is exactly x!, so round is the
84 correct inexact flag.
87 if (inexact == 0)
89 inexact
[all...]
H A Dround_near_x.c53 i = [ y = o(x)] // i = inexact flag
129 we can round but we can't compute inexact flag.
133 we can round and compute inexact flag. do nothing
159 int inexact, sign; local
184 MPFR_RNDRAW_GEN (inexact, y, MPFR_MANT (v), MPFR_PREC (v), rnd, sign,
187 inexact = -sign;
198 /* If inexact == 0, setting y from v is exact but we haven't
200 if (inexact == 0)
204 inexact = sign;
210 inexact
[all...]
H A Dadd_d.c29 int inexact; local
37 ("a[%Pu]=%.*Rg inexact=%d",
38 mpfr_get_prec (a), mpfr_log_prec, a, inexact));
43 inexact = mpfr_set_d (d, c, rnd_mode);
44 MPFR_ASSERTD (inexact == 0);
47 inexact = mpfr_add (a, b, d, rnd_mode);
51 return mpfr_check_range (a, inexact, rnd_mode);
H A Ddiv_2ui.c28 int inexact; local
33 ("y[%Pu]=%.*Rg inexact=%d", mpfr_get_prec(y), mpfr_log_prec, y, inexact));
42 MPFR_SETRAW (inexact, y, x, exp, rnd_mode);
52 ((MPFR_IS_NEG (y) ? inexact <= 0 : inexact >= 0) &&
68 MPFR_RET (inexact);
H A Dmul_d.c29 int inexact; local
37 ("a[%Pu]=%.*Rg inexact=%d",
38 mpfr_get_prec (a), mpfr_log_prec, a, inexact));
43 inexact = mpfr_set_d (d, c, rnd_mode);
44 MPFR_ASSERTD (inexact == 0);
47 inexact = mpfr_mul (a, b, d, rnd_mode);
51 return mpfr_check_range (a, inexact, rnd_mode);
H A Dmul_2ui.c28 int inexact; local
33 ("y[%Pu]=%.*Rg inexact=%d",
34 mpfr_get_prec (y), mpfr_log_prec, y, inexact));
36 inexact = (y != x) ? mpfr_set (y, x, rnd_mode) : 0;
51 return inexact;
H A Dsubnormal.c28 Rounding Bit | Sticky Bit | inexact | Action | new inexact
38 Set the inexact flag if the returned ternary value is non-zero.
90 We need to examine old inexact flag to conclude. */
94 /* If inexact != 0, return 0.1*2^(emin+1).
95 Otherwise, rounding bit = 1, sticky bit = 0 and inexact = 0
120 int inexact, inex2; local
134 MPFR_RNDRAW_EVEN (inexact, dest,
140 (inexact == MPFR_EVEN_INEX ||
141 inexact
[all...]
H A Dcbrt.c30 associated inexact bit (non-zero iff the remainder is non-zero).
40 the sign, and whether s is "inexact" (i.e. t > 0 or the truncation of x
54 int inexact, inexact2, negative, r; local
59 ("y[%Pu]=%.*Rg inexact=%d", mpfr_get_prec (y), mpfr_log_prec, y,
60 inexact));
120 inexact = 0;
129 inexact = mpz_scan1 (m, 0) < r;
135 inexact = ! mpz_root (m, m, 3) || inexact;
146 if (inexact)
[all...]
H A Dcsch.c55 inexact = mpfr_ui_div (y, 1, x, r); \
56 if (inexact == 0) /* x is a power of two */ \
64 inexact = 1; \
70 inexact = -1; \
73 inexact = signx; \
H A Dcsc.c52 inexact = mpfr_ui_div (y, 1, x, r); \
53 if (inexact == 0) /* x is a power of two */ \
61 inexact = 1; \
67 inexact = -1; \
70 inexact = -signx; \
/netbsd-current/regress/lib/libc/ieeefp/testfloat/arch/alpha/
H A DMakefile.inc3 COPTS+= -mieee-with-inexact -mfp-rounding-mode=d
/netbsd-current/external/lgpl3/mpc/dist/src/
H A Dfr_div.c27 int inexact; local
34 inexact = mpc_div (a, bc, c, rnd);
38 return inexact;
/netbsd-current/external/lgpl3/mpfr/dist/tests/
H A Dtsinu.c29 int inexact; local
36 inexact = mpfr_sinu (y, x, 0, MPFR_RNDN);
41 inexact = mpfr_sinu (y, x, 1, MPFR_RNDN);
46 inexact = mpfr_sinu (y, x, 1, MPFR_RNDN);
51 inexact = mpfr_sinu (y, x, 1, MPFR_RNDN);
56 inexact = mpfr_sinu (y, x, 1, MPFR_RNDN);
58 MPFR_ASSERTN(inexact == 0);
62 inexact = mpfr_sinu (y, x, 1, MPFR_RNDN);
64 MPFR_ASSERTN(inexact == 0);
74 int inexact; local
163 int inexact; local
[all...]
H A Dtcosu.c29 int inexact; local
36 inexact = mpfr_cosu (y, x, 0, MPFR_RNDN);
41 inexact = mpfr_cosu (y, x, 1, MPFR_RNDN);
46 inexact = mpfr_cosu (y, x, 1, MPFR_RNDN);
51 inexact = mpfr_cosu (y, x, 1, MPFR_RNDN);
56 inexact = mpfr_cosu (y, x, 1, MPFR_RNDN);
58 MPFR_ASSERTN(inexact == 0);
62 inexact = mpfr_cosu (y, x, 1, MPFR_RNDN);
64 MPFR_ASSERTN(inexact == 0);
68 inexact
86 int inexact; local
163 int inexact; local
[all...]
H A Dtd_div.c32 int inexact; local
40 inexact = mpfr_d_div (y, 1.0, x, MPFR_RNDN);
41 MPFR_ASSERTN (inexact == 0);
48 inexact = mpfr_d_div (y, 1.0, x, MPFR_RNDN);
49 MPFR_ASSERTN (inexact == 0);
57 inexact = mpfr_d_div (y, 1.0, x, MPFR_RNDN);
58 MPFR_ASSERTN (inexact == 0);
68 inexact = mpfr_d_div (y, 1.0, x, MPFR_RNDN);
69 MPFR_ASSERTN (inexact == 0);
77 inexact
157 int inexact; local
[all...]
H A Dtfmod.c36 int inexact; local
56 mpfr_trunc (q, q); /* may change inexact flag */
58 inexact = mpfr_mul (q, q, y, MPFR_RNDZ); /* exact */
59 inexact = mpfr_sub (r, x, q, rnd);
61 return inexact;
134 int inexact; local
144 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
145 if (!mpfr_nan_p (r) || inexact != 0)
146 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN);
150 inexact
322 int inexact; local
371 int inexact, i; local
[all...]
H A Dttanu.c29 int inexact; local
36 inexact = mpfr_tanu (y, x, 0, MPFR_RNDN);
41 inexact = mpfr_tanu (y, x, 1, MPFR_RNDN);
46 inexact = mpfr_tanu (y, x, 1, MPFR_RNDN);
51 inexact = mpfr_tanu (y, x, 1, MPFR_RNDN);
56 inexact = mpfr_tanu (y, x, 1, MPFR_RNDN);
58 MPFR_ASSERTN(inexact == 0);
62 inexact = mpfr_tanu (y, x, 1, MPFR_RNDN);
64 MPFR_ASSERTN(inexact == 0);
74 int inexact, local
175 int inexact; local
[all...]
H A Dtdiv_d.c31 int inexact; local
39 inexact = mpfr_div_d (y, x, 1.0, MPFR_RNDN);
40 MPFR_ASSERTN (inexact == 0);
47 inexact = mpfr_div_d (y, x, 1.0, MPFR_RNDN);
48 MPFR_ASSERTN (inexact == 0);
56 inexact = mpfr_div_d (y, x, 1.0, MPFR_RNDN);
57 MPFR_ASSERTN (inexact == 0);
65 inexact = mpfr_div_d (y, x, 0.0, MPFR_RNDN);
66 MPFR_ASSERTN (inexact == 0);
73 inexact
102 int inexact; local
[all...]
H A Dtabs.c33 int inexact, cmp; local
56 inexact = mpfr_abs (y, x, (mpfr_rnd_t) rnd);
58 if (((inexact == 0) && (cmp != 0)) ||
59 ((inexact > 0) && (cmp <= 0)) ||
60 ((inexact < 0) && (cmp >= 0)))
62 printf ("Wrong inexact flag for %s: expected %d, got %d\n",
64 inexact);
84 int inexact; local
97 inexact = mpfr_abs (p[k], x, MPFR_RNDN);
98 if (mpfr_cmp_ui (p[k], 1) || inexact !
[all...]

Completed in 122 milliseconds

12345678