summaryrefslogtreecommitdiff
path: root/src/strtofr.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
* Updated a freebsd.org URL (bug tracker).vlefevre2020-09-101-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14104 280ebfd0-de03-0410-8827-d642c229c3f4
* [src,tests] Consistency: in prototypes, changedvlefevre2020-08-211-3/+3
| | | | | | | | | const mpfr_t to mpfr_srcptr mpfr_t to mpfr_ptr (except for mpfr_t *), as this is equivalent (the array is converted to a pointer) and the mpfr_srcptr/mpfr_ptr form is the usual one. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14103 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/strtofr.c] Added a FIXME about the error analysis (info that wasvlefevre2018-11-271-0/+2
| | | | | | part of the FIXME resolved in r13303 and inadvertently dropped). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13304 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Resolved a FIXME; tstrtofr no longer fails due tovlefevre2018-11-271-9/+4
| | | | | | bug20181127 with 8-bit limbs (micro-gmp/8). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13303 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Changed some unsigned long to unsigned int.vlefevre2018-11-231-66/+67
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13292 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Some cleanup in parsed_string_to_mpfr. Avoid a potentialvlefevre2018-11-231-9/+7
| | | | | | integer overflow in very high precision if mp_size_t < mpfr_prec_t. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13291 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Updated FIXME, due to new tests added tovlefevre2018-11-221-6/+1
| | | | | | tests/tstrtofr.c in r13278-13279,13286-13288. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13290 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] parsed_string_to_mpfr: updated a FIXME comment.vlefevre2018-11-161-1/+2
| | | | | | | | | In short, the current tstrtofr.c tests seem to always be hard-to-round cases. The consequence is that some parts of the code are run, but not completely tested, because for these cases, some intermediate results, potentially incorrect, are thrown out due to the next Ziv iteration! git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13274 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] parsed_string_to_mpfr: minor changes.vlefevre2018-11-161-10/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13273 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] parsed_string_to_mpfr: added log messages.vlefevre2018-11-161-0/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13272 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Minor change to use MPFR_ASSERTD.vlefevre2018-11-161-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13271 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] parsed_string_to_mpfr: removed an incorrect cast.vlefevre2018-11-161-2/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13268 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] parsed_string_to_mpfr: updated a FIXME comment (again,vlefevre2018-11-161-1/+3
| | | | | | another issue). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13267 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] parsed_string_to_mpfr: updated a FIXME comment (therevlefevre2018-11-161-1/+4
| | | | | | is another issue to solve first). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13266 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] parsed_string_to_mpfr: updated a comment (useless codevlefevre2018-11-161-1/+3
| | | | | | in this function or incomplete tests). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13264 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] parsed_string_to_mpfr: updated comments.vlefevre2018-11-161-2/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13262 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] parsed_string_to_mpfr: more code review, with minorvlefevre2018-11-151-37/+47
| | | | | | changes and corrections + a FIXME. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13261 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Typo.vlefevre2018-11-151-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13260 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Fixed an allocation bug for GMP_NUMB_BITS = 8.vlefevre2018-11-151-6/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13259 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Updated a comment: the issue with mpn_set_str foundvlefevre2018-11-151-4/+5
| | | | | | in 2013-12 (see r8722) was actually an error in the GMP manual. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13258 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] parsed_string_to_mpfr: improved an assertion; comments.vlefevre2018-11-151-3/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13257 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Near the beginning of parsed_string_to_mpfr: correctedvlefevre2018-11-151-16/+17
| | | | | | comments; added an assertion; minor change of a test. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13255 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] fixed r13168: in case exact=0, mpn_rshift was not donezimmerma2018-09-111-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13170 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Replaced "exact &=" by "exact = exact &&" as usual.vlefevre2018-09-111-2/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13168 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] fix for 8-bit limbzimmerma2018-09-111-8/+14
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13167 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] added commentzimmerma2018-09-111-0/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13166 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] fix from r13163 was incorrectzimmerma2018-09-101-1/+5
| | | | | | | [tests/tget_str.c] added a testcase, and fixed an error message git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13164 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] resolved a FIXMEzimmerma2018-09-081-5/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13163 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Moved some computations on the exponents earliervlefevre2018-06-071-13/+23
| | | | | | | since they may yield an early overflow or underflow, and computing the division by b^e would be useless in such a case. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12764 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Added a MPFR_ASSERTD and a FIXME on things that don'tvlefevre2018-06-071-1/+9
| | | | | | make much sense in the error analysis (still trying to understand…). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12763 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Continued to review the new error analysis and code.vlefevre2018-05-281-13/+15
| | | | | | | | | | Changes: * made the code more SSA-like (avoid a "y += ysize; y -= ysize;"); * clarified comments; * use MPFR_LIMB_MSB; * added a FIXME on the error analysis. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12723 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Started to review the new error analysis and codevlefevre2018-05-251-17/+25
| | | | | | (r12705,12706). Minor improvements. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12716 280ebfd0-de03-0410-8827-d642c229c3f4
* Removed trailing whitespace.vlefevre2018-05-161-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12707 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] revisit error analysis in the division case (end)zimmerma2018-05-161-11/+23
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12706 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] revisit error analysis in the division case (work in progress,zimmerma2018-05-151-48/+36
| | | | | | | not yet finished) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12705 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Potentially unnecessary code: comes from r8384.vlefevre2018-04-271-3/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12689 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Updated TODO about potentially unnecessary code.vlefevre2018-04-271-2/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12688 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Updated TODO about potentially unnecessary code,vlefevre2018-04-271-0/+14
| | | | | | | showing that this code probably increases the error bound (errors accumulate instead of compensating without this code). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12687 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Added a TODO about potentially unnecessary code.vlefevre2018-04-271-0/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12686 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Corrected/updated comments and added a log message.vlefevre2018-04-271-3/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12685 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Corrected a comment (exp_base and exp_bin description).vlefevre2018-04-271-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12684 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Added a FIXME: possible bug in very special cases withvlefevre2018-04-271-0/+7
| | | | | | large exponents, 32-bit mpfr_exp_t and very long strings. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12683 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Added/clarified comments.vlefevre2018-04-271-3/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12682 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] English usage in a comment.vlefevre2018-04-111-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12574 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] fixed bug in corner caseszimmerma2018-04-111-12/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12573 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Reverted r12569: this is wrong with a 32-bit ABI.vlefevre2018-04-101-16/+9
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12572 280ebfd0-de03-0410-8827-d642c229c3f4