summaryrefslogtreecommitdiff
path: root/add1sp.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-06-08 09:53:48 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-06-08 09:53:48 +0000
commit621d7ffd3682b99ba21ba2f796c7cc9680b4b774 (patch)
tree111de3ed4033d552b4e2f09ed23edcf45bf861f8 /add1sp.c
parent5ab31a6cfff0c816f35a8146e0aedcd1e80a78f5 (diff)
downloadmpfr-621d7ffd3682b99ba21ba2f796c7cc9680b4b774.tar.gz
Clean up use of stdio.h:
it is now included by mpfr-impl iff DEBUG is defined or WANT_ASSERT is defined. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3631 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'add1sp.c')
-rw-r--r--add1sp.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/add1sp.c b/add1sp.c
index e45b21b43..3e117ffc2 100644
--- a/add1sp.c
+++ b/add1sp.c
@@ -21,20 +21,9 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Place, Fifth Floor, Boston,
MA 02110-1301, USA. */
-#if defined(DEBUG) || defined(WANT_ASSERT)
-# include <stdio.h>
-#endif
-
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
-#ifdef DEBUG
-# undef DEBUG
-# define DEBUG(x) (x)
-#else
-# define DEBUG(x) /**/
-#endif
-
/* Check if we have to check the result of mpfr_add1sp with mpfr_add1 */
#ifdef WANT_ASSERT
# if WANT_ASSERT >= 2
@@ -77,6 +66,14 @@ int mpfr_add1sp (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode)
# endif
#endif
+/* Debugging support */
+#ifdef DEBUG
+# undef DEBUG
+# define DEBUG(x) (x)
+#else
+# define DEBUG(x) /**/
+#endif
+
/* compute sign(b) * (|b| + |c|)
Returns 0 iff result is exact,
a negative value when the result is less than the exact value,