| /netbsd/src/external/lgpl3/mpfr/dist/src/ |
| D | exceptions.c | 25 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 …]
|
| D | rint.c | 363 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()
|
| D | mpfr-impl.h | 257 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 …]
|
| D | next.c | 125 __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/ |
| D | td_div.c | 42 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 …]
|
| D | texceptions.c | 343 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 …]
|
| D | texpm1.c | 107 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()
|
| D | tlog10p1.c | 41 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()
|
| D | tlog2p1.c | 41 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()
|
| D | tlog1p.c | 64 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()
|
| D | tui_div.c | 113 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()
|
| D | tdiv_d.c | 41 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()
|
| D | trootn_si.c | 63 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()
|
| D | tdiv.c | 52 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 …]
|
| D | tcmp_d.c | 91 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()
|
| D | tcmp_ld.c | 93 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()
|
| D | tpow_all.c | 79 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 …]
|
| D | tmul_d.c | 41 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()
|
| D | tget_z.c | 172 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()
|
| D | td_sub.c | 41 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()
|
| D | tsub_d.c | 41 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()
|
| D | tgamma.c | 576 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 …]
|
| D | tlngamma.c | 49 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()
|
| D | tget_sj.c | 96 __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; \
|
| D | tsgn.c | 47 __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()
|