diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-10-27 13:04:10 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-10-27 13:04:10 +0000 |
commit | 98e7e0ca4eb90b4c6567d47326819e243dfbc982 (patch) | |
tree | e0d30a7fc2a302a0775b6710993636f40d496c03 /set_d.c | |
parent | 1a93f4d4bf9a450bda6a8f7863f9360842e0a20c (diff) | |
download | mpfr-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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" |