Home
last modified time | relevance | path

Searched refs:__gmpfr_flags (Results 1 – 25 of 126) sorted by relevance

123456

/netbsd/src/external/lgpl3/mpfr/dist/src/
Dexceptions.c25 MPFR_THREAD_VAR (mpfr_flags_t, __gmpfr_flags, 0)
107 __gmpfr_flags &= MPFR_FLAGS_ALL ^ mask; in mpfr_flags_clear()
115 __gmpfr_flags |= mask; in mpfr_flags_set()
123 return __gmpfr_flags & mask; in mpfr_flags_test()
131 return __gmpfr_flags; in mpfr_flags_save()
139 __gmpfr_flags = in mpfr_flags_restore()
140 (__gmpfr_flags & (MPFR_FLAGS_ALL ^ mask)) | in mpfr_flags_restore()
150 __gmpfr_flags = 0; in mpfr_clear_flags()
158 __gmpfr_flags &= MPFR_FLAGS_ALL ^ MPFR_FLAGS_UNDERFLOW; in mpfr_clear_underflow()
166 __gmpfr_flags &= MPFR_FLAGS_ALL ^ MPFR_FLAGS_OVERFLOW; in mpfr_clear_overflow()
[all …]
Drint.c363 mpfr_flags_t saved_flags = __gmpfr_flags; in mpfr_rint_roundeven()
369 __gmpfr_flags = saved_flags; in mpfr_rint_roundeven()
389 mpfr_flags_t saved_flags = __gmpfr_flags; in mpfr_rint_round()
395 __gmpfr_flags = saved_flags; in mpfr_rint_round()
415 mpfr_flags_t saved_flags = __gmpfr_flags; in mpfr_rint_trunc()
420 __gmpfr_flags = saved_flags; in mpfr_rint_trunc()
438 mpfr_flags_t saved_flags = __gmpfr_flags; in mpfr_rint_ceil()
444 __gmpfr_flags = saved_flags; in mpfr_rint_ceil()
464 mpfr_flags_t saved_flags = __gmpfr_flags; in mpfr_rint_floor()
470 __gmpfr_flags = saved_flags; in mpfr_rint_floor()
Dmpfr-impl.h257 extern MPFR_THREAD_ATTR mpfr_flags_t __gmpfr_flags;
302 # define __gmpfr_flags (*__gmpfr_flags_f()) macro
365 (__gmpfr_flags & (mpfr_flags_t) (mask))
369 ((int) (__gmpfr_flags & MPFR_FLAGS_UNDERFLOW))
371 ((int) (__gmpfr_flags & MPFR_FLAGS_OVERFLOW))
373 ((int) (__gmpfr_flags & MPFR_FLAGS_NAN))
375 ((int) (__gmpfr_flags & MPFR_FLAGS_INEXACT))
377 ((int) (__gmpfr_flags & MPFR_FLAGS_ERANGE))
379 ((int) (__gmpfr_flags & MPFR_FLAGS_DIVBY0))
390 do __gmpfr_flags = 0; while (0)
[all …]
Dnext.c125 __gmpfr_flags |= MPFR_FLAGS_NAN; in mpfr_nextabove()
139 __gmpfr_flags |= MPFR_FLAGS_NAN; in mpfr_nextbelow()
156 __gmpfr_flags |= MPFR_FLAGS_NAN; in mpfr_nexttoward()
162 __gmpfr_flags |= MPFR_FLAGS_NAN; in mpfr_nexttoward()
/netbsd/src/external/lgpl3/mpfr/dist/tests/
Dtd_div.c42 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in check_nans()
50 MPFR_ASSERTN (__gmpfr_flags == 0); in check_nans()
59 MPFR_ASSERTN (__gmpfr_flags == 0); in check_nans()
70 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_DIVBY0); in check_nans()
79 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_DIVBY0); in check_nans()
89 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_DIVBY0); in check_nans()
99 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_DIVBY0); in check_nans()
108 MPFR_ASSERTN (__gmpfr_flags == 0); in check_nans()
117 MPFR_ASSERTN (__gmpfr_flags == 0); in check_nans()
127 MPFR_ASSERTN (__gmpfr_flags == 0); in check_nans()
[all …]
Dtexceptions.c343 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_ALL); in check_set()
358 MPFR_ASSERTN (__gmpfr_flags == 0); in check_set()
373 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_ALL); in check_set()
388 MPFR_ASSERTN (__gmpfr_flags == 0); in check_set()
402 f1 = __gmpfr_flags; in check_groups()
405 MPFR_ASSERTN (__gmpfr_flags == f1); in check_groups()
412 if ((__gmpfr_flags & j) != ((mask & j) != 0 ? j : (f1 & j))) in check_groups()
417 (unsigned long) __gmpfr_flags, (unsigned long) j); in check_groups()
421 f2 = __gmpfr_flags; in check_groups()
428 if ((__gmpfr_flags & j) != ((mask & j) != 0 ? 0 : (f2 & j))) in check_groups()
[all …]
Dtexpm1.c107 MPFR_ASSERTN (__gmpfr_flags == (MPFR_FLAGS_OVERFLOW | MPFR_FLAGS_INEXACT)); in special()
114 MPFR_ASSERTN (__gmpfr_flags == (MPFR_FLAGS_OVERFLOW | MPFR_FLAGS_INEXACT)); in special()
121 MPFR_ASSERTN (__gmpfr_flags == (MPFR_FLAGS_OVERFLOW | MPFR_FLAGS_INEXACT)); in special()
130 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_INEXACT); in special()
136 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_INEXACT); in special()
142 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_INEXACT); in special()
148 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_INEXACT); in special()
154 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_INEXACT); in special()
Dtlog10p1.c41 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in special()
47 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in special()
53 MPFR_ASSERTN (__gmpfr_flags == 0); in special()
59 MPFR_ASSERTN (__gmpfr_flags == 0); in special()
64 MPFR_ASSERTN (__gmpfr_flags == 0); in special()
70 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_DIVBY0); in special()
76 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in special()
Dtlog2p1.c41 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in special()
47 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in special()
53 MPFR_ASSERTN (__gmpfr_flags == 0); in special()
59 MPFR_ASSERTN (__gmpfr_flags == 0); in special()
64 MPFR_ASSERTN (__gmpfr_flags == 0); in special()
70 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_DIVBY0); in special()
76 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in special()
Dtlog1p.c64 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in special()
70 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in special()
76 MPFR_ASSERTN (__gmpfr_flags == 0); in special()
82 MPFR_ASSERTN (__gmpfr_flags == 0); in special()
87 MPFR_ASSERTN (__gmpfr_flags == 0); in special()
93 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_DIVBY0); in special()
99 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in special()
Dtui_div.c113 MPFR_ASSERTN (__gmpfr_flags == 0); in check_special()
121 MPFR_ASSERTN (__gmpfr_flags == 0); in check_special()
128 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in check_special()
135 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in check_special()
142 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_DIVBY0); in check_special()
150 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_DIVBY0); in check_special()
157 MPFR_ASSERTN (__gmpfr_flags == 0); in check_special()
164 MPFR_ASSERTN (__gmpfr_flags == 0); in check_special()
197 flags2 = __gmpfr_flags; in check_overflow()
Dtdiv_d.c41 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in check_nans()
49 MPFR_ASSERTN (__gmpfr_flags == 0); in check_nans()
58 MPFR_ASSERTN (__gmpfr_flags == 0); in check_nans()
67 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in check_nans()
75 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_DIVBY0); in check_nans()
84 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_DIVBY0); in check_nans()
Dtrootn_si.c63 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in special()
94 MPFR_ASSERTN (__gmpfr_flags == (n[i] == 0 ? MPFR_FLAGS_NAN : 0)); in special()
112 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in special()
132 MPFR_ASSERTN (__gmpfr_flags == 0); in special()
158 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_DIVBY0); in special()
168 MPFR_ASSERTN (__gmpfr_flags == 0); in special()
177 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in special()
Dtdiv.c52 oldflags = __gmpfr_flags; in mpfr_all_div()
60 newflags = __gmpfr_flags; in mpfr_all_div()
70 __gmpfr_flags = oldflags; in mpfr_all_div()
78 if (__gmpfr_flags != newflags) in mpfr_all_div()
81 newflags, __gmpfr_flags); in mpfr_all_div()
88 __gmpfr_flags = oldflags; in mpfr_all_div()
91 MPFR_ASSERTN (__gmpfr_flags == newflags); in mpfr_all_div()
102 __gmpfr_flags = oldflags; in mpfr_all_div()
105 MPFR_ASSERTN (__gmpfr_flags == newflags); in mpfr_all_div()
110 __gmpfr_flags = oldflags; in mpfr_all_div()
[all …]
Dtcmp_d.c91 if (c != 0 || __gmpfr_flags != MPFR_FLAGS_ERANGE) in main()
98 flags_out (__gmpfr_flags); in main()
110 if (c != 0 || __gmpfr_flags != MPFR_FLAGS_ERANGE) in main()
117 flags_out (__gmpfr_flags); in main()
Dtcmp_ld.c93 if (c != 0 || __gmpfr_flags != MPFR_FLAGS_ERANGE) in main()
100 flags_out (__gmpfr_flags); in main()
112 if (c != 0 || __gmpfr_flags != MPFR_FLAGS_ERANGE) in main()
119 flags_out (__gmpfr_flags); in main()
Dtpow_all.c79 unsigned int flags2 = __gmpfr_flags; in cmpres()
154 __gmpfr_flags = MPFR_FLAGS_ALL; in test_others()
170 __gmpfr_flags = MPFR_FLAGS_ALL; in test_others()
186 __gmpfr_flags = MPFR_FLAGS_ALL; in test_others()
209 __gmpfr_flags = MPFR_FLAGS_ALL; in test_others()
221 __gmpfr_flags = MPFR_FLAGS_ALL; in test_others()
234 __gmpfr_flags = MPFR_FLAGS_ALL; in test_others()
248 __gmpfr_flags = MPFR_FLAGS_ALL; in test_others()
264 __gmpfr_flags = MPFR_FLAGS_ALL; in test_others()
279 __gmpfr_flags = MPFR_FLAGS_ALL; in test_others()
[all …]
Dtmul_d.c41 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in check_nans()
49 MPFR_ASSERTN (__gmpfr_flags == 0); in check_nans()
57 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in check_nans()
65 MPFR_ASSERTN (__gmpfr_flags == 0); in check_nans()
Dtget_z.c172 ex_flags = __gmpfr_flags = flags[fi]; in check_one()
177 gt_flags = __gmpfr_flags; in check_one()
262 __gmpfr_flags = flags[fi]; in special()
264 gt_flags = __gmpfr_flags; in special()
278 __gmpfr_flags = flags[fi]; in special()
280 gt_flags = __gmpfr_flags; in special()
Dtd_sub.c41 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in check_nans()
49 MPFR_ASSERTN (__gmpfr_flags == 0); in check_nans()
58 MPFR_ASSERTN (__gmpfr_flags == 0); in check_nans()
Dtsub_d.c41 MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); in check_nans()
49 MPFR_ASSERTN (__gmpfr_flags == 0); in check_nans()
58 MPFR_ASSERTN (__gmpfr_flags == 0); in check_nans()
Dtgamma.c576 flags1 = __gmpfr_flags; in exprange()
581 flags2 = __gmpfr_flags; in exprange()
599 flags1 = __gmpfr_flags; in exprange()
604 flags2 = __gmpfr_flags; in exprange()
622 flags1 = __gmpfr_flags; in exprange()
626 flags2 = __gmpfr_flags; in exprange()
644 flags1 = __gmpfr_flags; in exprange()
649 flags2 = __gmpfr_flags; in exprange()
675 flags2 = __gmpfr_flags; in exprange()
691 flags2 = __gmpfr_flags; in exprange()
[all …]
Dtlngamma.c49 if (!mpfr_inf_p (y) || mpfr_sgn (y) < 0 || __gmpfr_flags != 0) in special()
58 if (!mpfr_inf_p (y) || mpfr_sgn (y) < 0 || __gmpfr_flags != 0) in special()
68 __gmpfr_flags != MPFR_FLAGS_DIVBY0) in special()
79 __gmpfr_flags != MPFR_FLAGS_DIVBY0) in special()
102 __gmpfr_flags != MPFR_FLAGS_DIVBY0) in special()
Dtget_sj.c96 __gmpfr_flags = ex_flags = flags[fi]; in check_sj()
100 gt_flags = __gmpfr_flags; in check_sj()
177 __gmpfr_flags = ex_flags = flags[fi]; in check_uj()
181 gt_flags = __gmpfr_flags; in check_uj()
209 __gmpfr_flags = ex_flags = flags[fi]; \
211 gt_flags = __gmpfr_flags; \
Dtsgn.c47 __gmpfr_flags = flags; in mpfr_sgn_test()
49 MPFR_ASSERTN (__gmpfr_flags == flags); in mpfr_sgn_test()
57 MPFR_ASSERTN (__gmpfr_flags == flags); in mpfr_sgn_test()

123456