summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>1999-06-16 09:41:54 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>1999-06-16 09:41:54 +0000
commit7b1d840f93e9d37aee1d1d954af40e1d867ce6a1 (patch)
tree29e81d6e790710b4f61335a52e32759e1d8a1c82
parentfcf73a8bf94c74c9e39ed0e5c0904481fca767c1 (diff)
downloadmpfr-7b1d840f93e9d37aee1d1d954af40e1d867ce6a1.tar.gz
added macro SET_ZERO
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@66 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--mpfr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mpfr.h b/mpfr.h
index 7201f4a63..0873ecfdc 100644
--- a/mpfr.h
+++ b/mpfr.h
@@ -69,6 +69,7 @@ typedef __gmp_const __mpfr_struct *mpfr_srcptr;
#define CHANGE_SIGN(x) (SIZE(x) = SIZE(x) ^ (1<<31))
#define PREC(x) ((x)->_mp_prec)
#define NOTZERO(x) (ABSSIZE(x))
+#define SET_ZERO(x) (SIZE(x) = 0)
/* reallocates the mantissa of x to q bits and sets the precision to q */
#define _mpfr_realloc(x, q) { \