summaryrefslogtreecommitdiff
path: root/set_d.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2004-10-27 13:04:10 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2004-10-27 13:04:10 +0000
commit98e7e0ca4eb90b4c6567d47326819e243dfbc982 (patch)
treee0d30a7fc2a302a0775b6710993636f40d496c03 /set_d.c
parent1a93f4d4bf9a450bda6a8f7863f9360842e0a20c (diff)
downloadmpfr-98e7e0ca4eb90b4c6567d47326819e243dfbc982.tar.gz
Removed the definitions of DBL_POS_INF/DBL_NEG_INF/DBL_NAN for
Visual C++ as they were incorrect. Modified DOUBLE_ISINF(x) so that infinities are no longer used (this should fix a part of the problem for Visual C++). If IEEE 754 is not supported, one should probably use the standard INFINITY macro instead of (1.0/0.0), since (1.0/0.0) is specific to IEEE 754. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3061 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set_d.c')
-rw-r--r--set_d.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/set_d.c b/set_d.c
index b9c3cba0d..012d09543 100644
--- a/set_d.c
+++ b/set_d.c
@@ -21,6 +21,7 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
#include <string.h> /* For memcmp if _GMP_IEEE_FLOAT == 0 */
+#include <float.h> /* For DOUBLE_ISINF and DOUBLE_ISNAN */
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"