summaryrefslogtreecommitdiff
path: root/src/get_str.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* [src] Applied patch by Patrick PĂ©lissier to allocate some constant-sizevlefevre2014-11-031-2/+2
| | | | | | | MPFR numbers on the stack instead of using mpfr_init2, and replace some MPFR_ASSERTN by MPFR_ASSERTD. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9229 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_str.c] Improved comments.vlefevre2014-10-311-8/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9228 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_str.c] Free the temporary memory allocated in the Ziv loop ASAPvlefevre2014-10-301-3/+4
| | | | | | and at a single place (the code should be clearer like that). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9227 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_str.c] Code refactoring.vlefevre2014-10-301-11/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9226 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/check.c] Added a note saying that mpfr_check() must not be calledvlefevre2014-10-301-1/+0
| | | | | | | | on statically allocated numbers (only used inside MPFR). [src/get_str.c] Removed the "MPFR_ASSERTD (mpfr_check (p));" (added in previous commit) because of that. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9223 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_str.c] Added some logging (MPFR_LOG_*), which triggers a crashvlefevre2014-10-301-0/+14
| | | | | | | | | | in tget_str with MPFR_LOG_ALL=1. An analysis with gdb shows that this is due to an invalid MPFR number in mpfr_ceil_mul(). Added a MPFR_ASSERTD (mpfr_check (p)); there, which fails in tget_str (this was the cause of the crash), even without logging. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9222 280ebfd0-de03-0410-8827-d642c229c3f4
* mpfr_get_str now sets the NaN flag on NaN input. See:vlefevre2014-10-291-0/+1
| | | | | | | | | https://sympa.inria.fr/sympa/arc/mpfr/2014-10/msg00013.html and https://gforge.inria.fr/tracker/index.php?func=detail&aid=18228&group_id=136&atid=619 Also completed the mpfr_get_str description in mpfr.texi concerning the special numbers and the exception flags. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9221 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_str.c] Improved style consistency.vlefevre2014-10-281-18/+19
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9218 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_str.c] Coding style: better code for a boolean.vlefevre2014-07-201-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9156 280ebfd0-de03-0410-8827-d642c229c3f4
* Use MPFR_IS_NEG and MPFR_IS_POS instead of comparing the sign with 0.vlefevre2014-06-251-1/+1
| | | | | | | | | | | Done with perl -pi -e ' s/MPFR_SIGN *\(([^)]+)\) *<=? *0/MPFR_IS_NEG ($1)/g; s/MPFR_SIGN *\(([^)]+)\) *>=? *0/MPFR_IS_POS ($1)/g; ' {src,tests}/*.{c,h} and some manual changes. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9092 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/get_str.c] #include "mpfr-intmax.h" so that UINT64_C has a chancevlefevre2012-09-041-0/+1
| | | | | | to be defined (optionally used as of r8406). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8409 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tl2b.c] use UINT64_C for 64-bit integer constantszimmerma2012-09-041-122/+126
| | | | | | | [src/get_str.c] update table generated by "tests/tl2b 1" git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8406 280ebfd0-de03-0410-8827-d642c229c3f4
* we use a 77-bit approximation in get_str.c (and not 76-bit)zimmerma2012-07-261-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8357 280ebfd0-de03-0410-8827-d642c229c3f4
* Avoid potential integer overflows and improve consistency. This shouldvlefevre2012-02-221-3/+3
| | | | | | | | 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
* [src/get_str.c] Added a comment about the use of mpfr_ceil_mulvlefevre2011-07-291-0/+1
| | | | | | (exported and declared in mpfr-impl.h since r7760). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7762 280ebfd0-de03-0410-8827-d642c229c3f4
* Make ceil_mul() public as mpfr_ceil_mul() in mpfr-impl.hthevenyp2011-07-281-6/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7760 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated AUTHORS file and copyright notices (for more consistency).vlefevre2011-05-181-1/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7705 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_str.c,TODO] updated comments, mpfr_get_str already supports base <= 62zimmerma2011-01-281-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7439 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-6/+6
| | | | | | 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/+2554
* 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