summaryrefslogtreecommitdiff
path: root/src/mpfr-impl.h
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-03-29 23:12:01 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-03-29 23:12:01 +0000
commitff1e2ee315ffab91a62a3c7b04098e17035215ab (patch)
treed50baa9227e1d7f3c9a16e9788907ed1802412d3 /src/mpfr-impl.h
parente3dcaaf0d9e206b0acd9597622c6d3d423cb5ed5 (diff)
downloadmpfr-ff1e2ee315ffab91a62a3c7b04098e17035215ab.tar.gz
[src/set_{si,ui}_2exp.c] Added early underflow/overflow checking to
avoid integer overflow or errors due to special exponent values. [src/set_uj.c] Added early overflow detection to avoid a possible integer overflow. Fixed underflow detection. [tests/tset_si.c] Added tests of mpfr_set_si_2exp and mpfr_set_ui_2exp in precision 3 with integers from -31 to 31 and exponents MPFR_EXP_MIN, MPFR_EMIN_MIN-7 to MPFR_EMIN_MIN, MPFR_EMAX_MAX-7 to MPFR_EMAX_MAX, MPFR_EXP_MAX-7 to MPFR_EXP_MAX (testcases for the above bugs in src/set_{si,ui}_2exp.c). [tests/tset_sj.c] Added tests of mpfr_set_sj_2exp and mpfr_set_uj_2exp in precision 3 with integers from -31 to 31 and the same exponents as in tset_si.c, but also exponents INTMAX_MIN and INTMAX_MAX (testcases for the above bugs in src/set_uj.c). (merged changesets r13808-13809,13826,13832-13835 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13836 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/mpfr-impl.h')
0 files changed, 0 insertions, 0 deletions