diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-06-02 15:15:02 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-06-02 15:15:02 +0000 |
commit | f1253ebc9649d9bcf732cfcd6760fc10453b9334 (patch) | |
tree | 8ebca7be0770c9240880a956def75353ad9d3b3f /abort_prec_max.c | |
parent | d03898d2ba8f45cb375bbf9250321f2fb34b1085 (diff) | |
download | mpfr-f1253ebc9649d9bcf732cfcd6760fc10453b9334.tar.gz |
Add support for MPFR_GROUP functions.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3602 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'abort_prec_max.c')
-rw-r--r-- | abort_prec_max.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/abort_prec_max.c b/abort_prec_max.c new file mode 100644 index 000000000..37b1b54bf --- /dev/null +++ b/abort_prec_max.c @@ -0,0 +1,32 @@ +/* mpfr_abort_prec_max -- Abort due to maximal precision overflow. + +Copyright 2005 Free Software Foundation, Inc. + +This file is part of the MPFR Library. + +The MPFR Library is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or (at your +option) any later version. + +The MPFR Library is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public +License for more details. + +You should have received a copy of the GNU Lesser General Public License +along with the MPFR Library; see the file COPYING.LIB. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, +MA 02111-1307, USA. */ + +#include <stdio.h> +#include <stdlib.h> + +#include "mpfr-impl.h" + +void mpfr_abort_prec_max (void) +{ + fprintf (stderr, "MPFR: Maximal precision overflow\n"); + abort (); +} + |