summaryrefslogtreecommitdiff
path: root/src/round_prec.c
Commit message (Collapse)AuthorAgeFilesLines
* Punctuation (missing comma after "however").vlefevre2021-06-211-1/+1
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14542 280ebfd0-de03-0410-8827-d642c229c3f4
* 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/round_prec.c] mpfr_can_round_raw: improved the code structure aboutvlefevre2018-11-191-13/+16
| | | | | | | rnd1 and rnd2, making clear that they are not changed several times; avoid the use of cc with 2 different meanings in the same code path. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13276 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/round_prec.c] fixed bug in mpfr_can_round when rnd2=RNDF, rnd1 is azimmerma2018-11-171-4/+19
| | | | | | | directed rounding, and the input is exact git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13275 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/round_prec.c] MPFR_LIMB is actually useless now...vlefevre2018-09-041-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13124 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/round_prec.c] Code style and potential correction for 16-bit limb.vlefevre2018-09-041-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13123 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/round_prec.c] fixed for 16-bit limbzimmerma2018-09-041-1/+1
| | | | | | | [tests/tcan_round.c] improve error message git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13121 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/round_prec.c] Replaced an incorrect comment by an assertion.vlefevre2018-04-061-1/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12565 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/round_prec.c] added commentszimmerma2018-04-061-0/+3
| | | | | | | | [src/round_raw_generic.c] removed dead code [tests/tcan_round.c] improve coverage git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12561 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/round_prec.c] removed some dead code (if rnd1 = rnd2 and the casezimmerma2018-04-061-18/+2
| | | | | | | rnd2 = RNDN was already treated, we cannot have rnd1 = RNDN) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12559 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/round_prec.c] fixed a bug (to be reviewed)zimmerma2018-04-051-1/+1
| | | | | | | [tests/tcan_round.c] added coverage tests git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12548 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
* Cleanup: In src/mpfr-gmp.h, exchangedvlefevre2017-11-101-1/+1
| | | | | | | | | | mpfr_allocate_func and *__gmp_allocate_func mpfr_reallocate_func and *__gmp_reallocate_func mpfr_free_func and *__gmp_free_func and in the code, replaced *__gmp_{allocate,reallocate,free}_func by mpfr_{allocate,reallocate,free}_func; updated TODO file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11820 280ebfd0-de03-0410-8827-d642c229c3f4
* Merged the latest changes from the trunk.vlefevre2017-01-011-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@11121 280ebfd0-de03-0410-8827-d642c229c3f4
* Merged the latest changes from the trunk except those related tovlefevre2016-12-061-1/+3
| | | | | | | mpfr_zeta (it is buggy and not fixed yet in the trunk, but the bug will not be triggered here, allowing the tests to pass). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10971 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/round_prec.c] Added some details in a comment for rnd2 = RNDF.vlefevre2016-09-021-4/+22
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10788 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/round_prec.c] updated specification of mpfr_can_round with rnd2 = RNDFzimmerma2016-09-021-11/+5
| | | | | | | [tests/tpow.c] one test makes no sense for RNDF git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10786 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/round_prec.c] Forbid rnd2 = MPFR_RNDF as it does not make muchvlefevre2016-09-021-1/+13
| | | | | | | | | sense without additional specification (and explained why). [tests/{tcan_round.c,tgeneric.c}] Added MPFR_RNDF support with the above restriction. Note: 6 tests are failing as a consequence. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10780 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/round_prec.c] FIXME: rnd2 == MPFR_RNDF is not supported yet.vlefevre2016-09-021-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10779 280ebfd0-de03-0410-8827-d642c229c3f4
* Merged the following changesets from the trunk:vlefevre2016-09-021-48/+260
| | | | | | | | | r10664-10686,10689-10690,10692,10695-10696,10699-10775 i.e. all the latest changes except for src/{add1sp.c,sub1sp.c} to avoid build failures (to be solved later). Currently only tcan_round fails, due to MPFR_RNDF. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10776 280ebfd0-de03-0410-8827-d642c229c3f4
* start implementing RNDF (work in progress)zimmerma2016-05-281-0/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10380 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
* [src/round_prec.c] Added a TODO to improve the mpfr_can_round_rawvlefevre2016-02-021-0/+7
| | | | | | efficiency by only doing a bit inspection (no mpn operations). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9905 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed FIXMEzimmerma2016-01-291-4/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9896 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed case when prec > bn * GMP_NUMB_BITS and directed roundingzimmerma2016-01-291-2/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9890 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/round_prec.c] Updated comments.vlefevre2016-01-281-3/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9885 280ebfd0-de03-0410-8827-d642c229c3f4
* more work on mpfr_can_roundzimmerma2016-01-281-10/+17
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9884 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed bug in mpfr_can_round for input = 2^kzimmerma2016-01-281-14/+37
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9883 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
* Added MPFR_PREC_COND, MPFR_PREC_IN_RANGE and MPFR_GET_PREC internalvlefevre2014-03-251-1/+1
| | | | | | | | macros (to mpfr-impl.h). Use these macros at some places in the code (replacing some MPFR_PREC instances, as suggested by a patch from Patrick Pélissier). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9016 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/{exp.c,exp_2.c}] mpfr_exp optimization (modified patchvlefevre2014-01-211-0/+3
| | | | | | | by Patrick Pélissier). [src/round_prec.c] Added a note about the reallocation. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8843 280ebfd0-de03-0410-8827-d642c229c3f4
* LIKELY some code.vlefevre2014-01-211-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8842 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
* Avoid potential integer overflows and improve consistency. This shouldvlefevre2012-02-221-2/+2
| | | | | | | | fix bug #13918 "Segfault with precision = MPFR_PREC_MAX on 32-bit". Note: this problem appeared in MPFR 3.0.0 when the precision type (now mpfr_prec_t) was changed to a signed integer. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8025 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
* Added new types mpfr_limb_ptr and mpfr_limb_srcptr to src/mpfr-impl.h,vlefevre2011-02-091-1/+1
| | | | | | | and replaced mp_ptr and mp_srcptr (GMP internals) by these 2 new types respectively. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7455 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
* Added MPFR_TMP_LIMBS_ALLOC macro and updated the source to use it.vlefevre2010-12-171-2/+2
| | | | | | tools/mpfrlint: check its use instead of MPFR_TMP_ALLOC. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7300 280ebfd0-de03-0410-8827-d642c229c3f4
* Source reorganization. In short:vlefevre2010-08-171-0/+240
* 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