diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-02-06 13:27:05 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-02-06 13:27:05 +0000 |
commit | 19767e6f6f9089ef12f81e9f3b64f5c71ff71c84 (patch) | |
tree | 388f8324eb4f2595b607ac0b1afa7352ca4c9c5d /div_ui.c | |
parent | 6e0b309b6faf9353e1732c77a95099a5aa5d86c0 (diff) | |
download | mpfr-19767e6f6f9089ef12f81e9f3b64f5c71ff71c84.tar.gz |
+ Better support of non IEEE doubles.
+ You can compile MPFR without gmp internal files (ie gmp-impl.h, gmp-mparam.h, and config.h). You only need gmp.h and libgmp.a. But you can still compile with GMP internal files (configure detects them).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2665 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'div_ui.c')
-rw-r--r-- | div_ui.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -19,10 +19,8 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "gmp.h" -#include "gmp-impl.h" -#include "longlong.h" -#include "mpfr.h" + +#define MPFR_NEED_LONGLONG_H #include "mpfr-impl.h" /* returns 0 if result exact, non-zero otherwise */ @@ -186,7 +184,8 @@ mpfr_div_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mp_rnd_t rnd_mode) else MPFR_RET(-MPFR_INT_SIGN(x)); } + default: + MPFR_ASSERTN(0); } - MPFR_ASSERTN(0); /* should never go here */ return 0; /* To avoid warning*/ } |