summaryrefslogtreecommitdiff
path: root/sub1sp.c
Commit message (Collapse)AuthorAgeFilesLines
* Clean up use of stdio.h:pelissip2005-06-081-12/+7
| | | | | | | | it is now included by mpfr-impl iff DEBUG is defined or WANT_ASSERT is defined. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3631 280ebfd0-de03-0410-8827-d642c229c3f4
* Clean up code.pelissip2005-06-081-21/+25
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3629 280ebfd0-de03-0410-8827-d642c229c3f4
* Change the address of the FSF.pelissip2005-06-021-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3606 280ebfd0-de03-0410-8827-d642c229c3f4
* Replace TMP_ALLOC by MPFR_TMP_ALLOCpelissip2005-05-181-11/+11
| | | | | | | | | | Replace TMP_DECL by MPFR_TMP_DECL Replace TMP_MARK by MPFR_TMP_MARK Replace TMP_FREE by MPFR_TMP_FREE Add support for GMP's TMP_SALLOC. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3593 280ebfd0-de03-0410-8827-d642c229c3f4
* Improve full assertion mode (Check mpfr_mul).pelissip2005-03-091-44/+40
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3375 280ebfd0-de03-0410-8827-d642c229c3f4
* Spelling mistakes & reformatted code.vlefevre2005-02-161-449/+453
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3324 280ebfd0-de03-0410-8827-d642c229c3f4
* Rename internal functions mpfr_set_overflow in mpfr_overflow andpelissip2005-02-031-3/+3
| | | | | | | | mpfr_set_underflow in mpfr_underflow so that we can add new functions mpfr_set_underflow and mpfr_set_overflow (which set the global flags). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3269 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix a compiler bug (limb !=0 instead of limb).pelissip2004-03-151-12/+12
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2841 280ebfd0-de03-0410-8827-d642c229c3f4
* Simplify the code.pelissip2004-02-251-2/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2811 280ebfd0-de03-0410-8827-d642c229c3f4
* Remove some warnings.pelissip2004-02-241-45/+56
| | | | | | | MPFR can be compiled (but not checked!) with a C++ compiler. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2802 280ebfd0-de03-0410-8827-d642c229c3f4
* Update commentpelissip2004-02-231-0/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2782 280ebfd0-de03-0410-8827-d642c229c3f4
* Optimize it a few.pelissip2004-02-171-2/+15
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2751 280ebfd0-de03-0410-8827-d642c229c3f4
* Optimize add1sp, sub1sp and div.pelissip2004-02-161-33/+29
| | | | | | | Improve coverage test for sub1sp. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2730 280ebfd0-de03-0410-8827-d642c229c3f4
* + Better support of non IEEE doubles.pelissip2004-02-061-8/+9
| | | | | | | + 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
* Better supports of non IEEE-754 floats (don't use anymore ↵pelissip2004-01-281-2/+3
| | | | | | ieee_double_extract if _GMP_IEEE is not set). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2650 280ebfd0-de03-0410-8827-d642c229c3f4
* Reenable the cmp between inexact flags.pelissip2004-01-191-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2634 280ebfd0-de03-0410-8827-d642c229c3f4
* Optimize a few sub1sp by removing the normalisation in case of exact ↵pelissip2004-01-151-10/+11
| | | | | | rounding and by removing the calcul of the rounding mode in case of exact rounding. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2626 280ebfd0-de03-0410-8827-d642c229c3f4
* Use MPFR_ASSERTN(0) instead of abort.pelissip2004-01-071-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2607 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix bug of sub1sp.c on sparck.pelissip2004-01-071-15/+71
| | | | | | | | Add new tests for sub1sp. Reenable sub1sp for mpfr_add / mpfr_sub. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2602 280ebfd0-de03-0410-8827-d642c229c3f4
* Use MPFR_UNSIGNED_MINUS_MODULO when needed.pelissip2003-12-221-11/+9
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2589 280ebfd0-de03-0410-8827-d642c229c3f4
* Remove one warning in mpf_compat.hpelissip2003-12-191-2/+2
| | | | | | | | Create a new macro: MPFR_RET_NEVER_GO_HERE Modify ui_sub/div to use it to make Insure++ happy. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2583 280ebfd0-de03-0410-8827-d642c229c3f4
* + Optimize a few div.cpelissip2003-12-151-153/+156
| | | | | | | | | | | | + Remove some warnings in asin.c, atan.c. + Include limits.h before gmp-impl.h in mpfr-impl.h + mpfr-tests.h doesn't include anumore standard include files. + Test files include only standard includes and mpfr-tests.h. + Add some forgotten mpfr_clear in mpf[r]_compat. + Remove some warnings in the tests. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2576 280ebfd0-de03-0410-8827-d642c229c3f4
* + Add a new test in case of underflow.pelissip2003-12-101-1/+1
| | | | | | | + Fix bug in case of underflow for sub1 / sub1sp (mpfr_powerof2 could be called with inalid numbers). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2571 280ebfd0-de03-0410-8827-d642c229c3f4
* + Fixed bugs of mpfr_print_mant_binary on 64 bits CPU (1L instead of 1).pelissip2003-12-091-13/+14
| | | | | | | + Fixed bugs of mpfr_sub1sp on 64-bits CPU (mp_limb_t instead of int). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2570 280ebfd0-de03-0410-8827-d642c229c3f4
* + Add function mpfr_print_mantissa_binary, for debugging reason.pelissip2003-12-091-0/+711
+ Rename MPFR_ALLOC_SIZE in MPFR_MALLOC_SIZE. + Add conditionnal -DSMALL directive in mpfr-impl.h. + Add new function: sub1sp. Substraction in case of all the ops have the same prec. + Add its test (tsub1sp). + Modify a few the tests to avoid comparing mpfr results with double, for portability reason. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2569 280ebfd0-de03-0410-8827-d642c229c3f4