diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-09-29 12:27:36 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-09-29 12:27:36 +0000 |
commit | 8eb22ba63830dbf829b9faa742c68438c43992d9 (patch) | |
tree | 3482ee8bed089b988aae3d20dda76cede0dab587 /set_sj.c | |
parent | 795c8ef5f9daa924b5592582240c9ba9a58034c1 (diff) | |
download | mpfr-8eb22ba63830dbf829b9faa742c68438c43992d9.tar.gz |
Add mpfr_clear_erangeflag and mpfr_erangeflag_p.
Add test for theses two functions.
mpfr_get_[s/u][i/j] have a deterministic behavior in case of OVERFLOW.
(Return the MINIMUM or the MAXIMUM in the current type, and set
ERANGE_flag).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3007 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set_sj.c')
-rw-r--r-- | set_sj.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -23,6 +23,13 @@ MA 02111-1307, USA. */ # include "config.h" /* for a build within gmp */ #endif +/* The ISO C99 standard specifies that in C++ implementations the + INTMAX_MAX, ... macros should only be defined if explicitly requested. */ +#if defined __cplusplus +# define __STDC_LIMIT_MACROS +# define __STDC_CONSTANT_MACROS +#endif + #ifdef HAVE_STDINT_H # include <stdint.h> #endif |