summaryrefslogtreecommitdiff
path: root/src/gmp_op.c
Commit message (Collapse)AuthorAgeFilesLines
* Copyright notice update: added 2021 withvlefevre2021-01-031-1/+1
| | | | | | | | perl -pi -e 's/ (\d{4}-)?(2020)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh. Removed 2020 from the example in the doc/README.dev file. git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14229 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2020 withvlefevre2020-01-081-1/+1
| | | | | | | | perl -pi -e 's/ (\d{4}-)?(2019)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh. Removed 2019 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13652 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated the www.gnu.org URL's (http → https) on all the files with:vlefevre2019-01-071-1/+1
| | | | | | | perl -pi -e 's,http://www.gnu.org/,https://www.gnu.org/,g' **/*(.) under zsh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13372 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2019 withvlefevre2019-01-011-1/+1
| | | | | | | | perl -pi -e 's/ (\d{4}-)?(2018)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh. Removed 2018 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13359 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] fixed bug in mpfr_cmp_q for den(q)=0zimmerma2018-03-281-1/+1
| | | | | | | [tests/tgmpop.c] improve coverage git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12499 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] Fixed a bug in mpfr_cmp_q on NaN rational: the NaN flagvlefevre2018-02-201-1/+5
| | | | | | was set by mpfr_set_q, but the flags were not restored just after. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12343 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] Reverted incorrect change in r12337 for mpfr_cmp_q.vlefevre2018-02-201-2/+12
| | | | | | | Explanation in comment. If the code was not tested, it should be by using mpq_set_num and mpq_set_den to construct such rationals. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12342 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] removed dead codezimmerma2018-02-201-10/+11
| | | | | | | [tests/tgmpop.c] improve coverage of gmp_op.c to 100% git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12337 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2018 withvlefevre2018-01-031-1/+1
| | | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2017)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh, reverting the ck-mparam and timings-mpfr.c files and the mbench directory under "tools" (not distributed with MPFR). Removed 2017 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12067 280ebfd0-de03-0410-8827-d642c229c3f4
* make compilation work again (make + make check) with mini-gmpzimmerma2017-12-041-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11891 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2017 withvlefevre2017-01-011-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2016)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh, reverting the tools/mbench directory (not distributed with MPFR). Removed 2016 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11117 280ebfd0-de03-0410-8827-d642c229c3f4
* ABS(SIZ(x)) → ABSIZ(x)vlefevre2016-05-231-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10321 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] Fixed an assertion that made tgmpop fail on 32-bitvlefevre2016-02-111-1/+2
| | | | | | machines (it became wrong with r9964 and --enable-assert). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10015 280ebfd0-de03-0410-8827-d642c229c3f4
* Replacedvlefevre2016-02-041-1/+1
| | | | | | | | Contributed by the AriC and Caramel projects by Contributed by the AriC and Caramba projects git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9941 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2016 withvlefevre2016-01-011-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2015)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh (the m4 and tools/mbench directories were not modified). Removed 2015 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9779 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2015 withvlefevre2015-02-131-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2014)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh, reverting the tools/mbench directory (not distributed with MPFR). Removed 2014 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9278 280ebfd0-de03-0410-8827-d642c229c3f4
* Renamed WANT_MINI_GMP to MPFR_USE_MINI_GMP as it is used in mpfr.hvlefevre2014-07-021-2/+2
| | | | | | | (all MPFR macros that appear there should start with MPFR_ to avoid conflicts with other software). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9129 280ebfd0-de03-0410-8827-d642c229c3f4
* Added a TODO item concerning gmp_op.c functions with mpz_srcptr andvlefevre2014-03-101-0/+5
| | | | | | the use of mpz_fits_slong_p and a mpfr_*_si function (see r8992). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8998 280ebfd0-de03-0410-8827-d642c229c3f4
* speedup of the mpfr_xxx_z functions when z fits in a longzimmerma2014-02-281-11/+17
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8992 280ebfd0-de03-0410-8827-d642c229c3f4
* first step towards making MPFR compile with --enable-mini-gmp, so far makezimmerma2014-01-161-0/+4
| | | | | | | succeeds and all tests compile, but many tests fail, will investigate later git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8753 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2014 withvlefevre2014-01-031-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2013)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh (the tools/mbench directory was not modified). Removed 2013 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8723 280ebfd0-de03-0410-8827-d642c229c3f4
* Use copyright year ranges, followingvlefevre2013-05-301-1/+1
| | | | | | http://www.gnu.org/prep/maintain/maintain.html#Copyright-Notices git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8540 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2013 withvlefevre2013-01-031-1/+1
| | | | | | | | | perl -pi -e 's/2012 Free Software/2012, 2013 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file and the m4 directory (the tools/mbench directory was not modified). Removed 2012 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8447 280ebfd0-de03-0410-8827-d642c229c3f4
* [src] New mpfr_flags_t type, defined as an unsigned int. For thevlefevre2012-03-261-1/+1
| | | | | | | | | __gmpfr_flags variable and internal flags-related variables, replaced unsigned int by mpfr_flags_t (note that this doesn't change the ABI, since unsigned int was already used). [tests] Cast __gmpfr_flags to unsigned int when printed with %u. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8130 280ebfd0-de03-0410-8827-d642c229c3f4
* Changed Arenaire to AriC with:vlefevre2012-01-101-1/+1
| | | | | | | perl -pi -e 's/Contributed by the Arenaire/Contributed by the AriC/' **/*(^/) under zsh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7993 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2012 withvlefevre2012-01-101-1/+1
| | | | | | | | | perl -pi -e 's/2011 Free Software/2011, 2012 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file (the m4 and tools/mbench directories were not modified). Removed 2011 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7986 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] Forgot to update the flags in some functions.vlefevre2011-09-241-0/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7883 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] Handle the special cases in mpfr_cmp_q and mpfr_cmp_f.vlefevre2011-09-201-5/+22
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7866 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] Added a blank line.vlefevre2011-02-101-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7458 280ebfd0-de03-0410-8827-d642c229c3f4
* Added mpfr_z_sub (function/test/doc)demengeo2011-02-091-0/+25
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7457 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2011 withvlefevre2011-01-171-1/+1
| | | | | | | | perl -pi -e 's/2010 Free Software/2010, 2011 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file and the m4 and tools/mbench directories. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7389 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] Extend the exponent range in mpfr_cmp_q and mpfr_cmp_f.vlefevre2010-08-231-2/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7106 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] In mpfr_add_q / mpfr_sub_q, check with MPFR_ASSERTNvlefevre2010-08-231-2/+14
| | | | | | | | | that an internal overflow/underflow doesn't occur. In theory, such an exception is possible, but only if q has a huge numerator or denominator. This is not supported (note: other problems may occur first, such as insufficient memory). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7105 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] Extend the exponent range in mpfr_add_q / mpfr_sub_qvlefevre2010-08-231-2/+12
| | | | | | | (overflow/underflow exceptions are not supported yet). [tests/tgmpop.c] Added corresponding testcases. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7102 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] Fixed the Inf +/- Inf cases for mpfr_add_q / mpfr_sub_q.vlefevre2010-08-191-2/+14
| | | | | | [tests/tgmpop.c] Added Inf +/- Inf tests. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7101 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] The function mpfr_cmp_z could fail in a reducedvlefevre2010-08-191-1/+21
| | | | | | | exponent range. [tests/tgmpop.c] Added a corresponding testcase. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7099 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] The functions mpfr_mul_z, mpfr_div_z, mpfr_add_z andvlefevre2010-08-191-4/+13
| | | | | | | mpfr_sub_z could fail in a reduced exponent range. Fixed. [tests/tgmpop.c] Added corresponding testcase. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7098 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] Fixed the intermediate overflow case in mpfr_muldiv_zvlefevre2010-08-181-12/+34
| | | | | | (for mpfr_mul_q and mpfr_div_q). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7096 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] Added function mpfr_muldiv_z (currently static -- shouldvlefevre2010-08-181-42/+47
| | | | | | | | | it be in the API?) that computes y = RND(x*n/d), where n and d are mpz integers. Changed mpfr_mul_q and mpfr_div_q to use this function. Note: the code of the general case is currently the same as the old mpfr_mul_q/mpfr_div_q code, thus needs to be fixed. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7095 280ebfd0-de03-0410-8827-d642c229c3f4
* Source reorganization. In short:vlefevre2010-08-171-0/+345
* Added directories and moved related files into them: - src for the MPFR source files (to build the library). - doc for documentation files (except INSTALL, README...). - tools for various tools (scripts) and mbench. - tune for tuneup-related source files. - other for other source files (not distributed in tarballs). Existing directories: - tests for the source files of the test suite (make check). - examples for examples. - m4 for m4 files. * Renamed configure.in to configure.ac. * Added/updated Makefile.am files where needed. * Updated acinclude.m4 and configure.ac (AC_CONFIG_FILES line). * Updated the documentation (INSTALL, README, doc/README.dev and doc/mpfr.texi). * Updated NEWS and TODO. * Updated the scripts now in tools. The following script was used: #!/usr/bin/env zsh svn mkdir doc other src tools tune svn mv ${${(M)$(sed -n '/libmpfr_la_SOURCES/,/[^\]$/p' \ Makefile.am):#*.[ch]}:#get_patches.c} mparam_h.in \ round_raw_generic.c jyn_asympt.c src svn mv mbench check_inits_clears coverage get_patches.sh mpfrlint \ nightly-test update-patchv update-version tools svn mv bidimensional_sample.c speed.c tuneup.c tune svn mv *.{c,h} other svn mv FAQ.html README.dev algorithm* faq.xsl fdl.texi mpfr.texi \ update-faq doc svn mv configure.in configure.ac svn cp Makefile.am src/Makefile.am svn rm replace_all [Modifying some files, see above] svn add doc/Makefile.am svn add tune/Makefile.am git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7087 280ebfd0-de03-0410-8827-d642c229c3f4