diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-04-08 15:35:11 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-04-08 15:35:11 +0000 |
commit | 33306975f8fcb9d1dc99c63c59abc3872200df92 (patch) | |
tree | 09be016938eefe76848343922cdd18816db6490a | |
parent | 03d2e54477d1e9d8548964db0026590889d70075 (diff) | |
download | mpfr-33306975f8fcb9d1dc99c63c59abc3872200df92.tar.gz |
[tests/tsum.c] Comments.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/new-sum@9363 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | tests/tsum.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/tsum.c b/tests/tsum.c index 963a0bdc8..1bfcd498b 100644 --- a/tests/tsum.c +++ b/tests/tsum.c @@ -20,8 +20,8 @@ along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ -/* TODO: Add tests with intermediate overflows and tests with underflows - (this matters here as we don't have subnormals). */ +/* TODO: Add tests with underflows (this matters here as we don't have + subnormals). */ #include "mpfr-test.h" @@ -873,6 +873,10 @@ check_overflow (void) for (i = 0; i < 2 * NOVFL; i++) t[i] = i < NOVFL ? x : y; + /* Two kinds of test: + * i = 1: overflow. + * i = 2: intermediate overflow (exact sum is 0). + */ for (i = 1; i <= 2; i++) RND_LOOP(r) { |