summaryrefslogtreecommitdiffstats
path: root/generic/tclStrToD.c
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of "register" keyword, forbidden in c++20.jan.nijtmans2020-11-261-2/+2
| | | Fix some more warnings, discovered in c20/c++20 mode
* Merge 8.5. Failing tests highlight ticket [1b1f5f0b53].dgp2020-04-131-3/+3
|\
| * Guarantee TclNeedSpace and TclFindElement have common definition of whitespacedgp2020-04-091-3/+3
| | | | | | | | by having both call the same routine. Create a macro form to contain performance costs and adapt callers.
* | More uppercase HEX representations in source-code.jan.nijtmans2020-03-181-23/+23
| |
* | Better error-handling in some libtommath calls.jan.nijtmans2020-01-231-2/+2
| |
* | A few more "break" statements, so any compiler knows these are no ↵jan.nijtmans2020-01-151-0/+1
| | | | | | | | FALLTHROUGH situations.
* | Use _copysign on Windows always (available from float.h). Use mp_iszero() ↵jan.nijtmans2020-01-081-20/+14
|\ \ | |/ | | | | whenever appropriate.
| * Code cleanup (mostly comments, backported from 8.6).jan.nijtmans2020-01-081-1035/+1040
| |
* | Restore the build by providing a copysign replacement for old MSVC versions.fvogel2020-01-021-0/+12
|\ \ | |/
| * Restore the build by providing a copysign replacement for old MSVC versions.fvogel2020-01-021-0/+12
| |
* | Merge Tcl 8.5 changes to deal with integer overflow in the exponent, and ↵Kevin B Kenny2019-12-271-36/+106
|\ \ | |/ | | | | floating point overflow in the significand, of floating point input conversion (Bug [1de6b0629e]
| * Add test cases that used to cause floating point overflow in computing the ↵Kevin B Kenny2019-12-261-31/+101
| | | | | | | | correction term in floating point input conversion. Fix exponent overflow in floating point input conversion, and floating-point overflow in the significand in input conversion.
| * Fix parsing bug when (numSigDigs == 0).dgp2019-12-231-4/+4
| |
| * Assign a double literal to a double variable. No point in requiring conversion.dgp2019-12-221-1/+1
| |
* | Change mp_isodd() (back) from libtommath stub entry to macro. libtommath ↵jan.nijtmans2019-10-301-13/+13
| | | | | | | | | | changed it back to macro too in its master branch, we better do the same. Better usage of mp_isneg() macro, in stead of directly comparing sign with MP_NEG/MP_ZPOS.
* | Put #define's in alphabetical order. jan.nijtmans2019-10-251-13/+13
| | | | | | | | Use MP_DIGIT_BIT in stead of (deprecated) DIGIT_BIT everywhere. (just code cleanup, nothing funcional)
* | Merge 8.5jan.nijtmans2019-06-151-4/+4
|\ \ | |/
| * Use mp_init_set() in stead of mp_init_set_int() when the constant is ↵jan.nijtmans2019-06-151-4/+4
| | | | | | | | sufficiently small. This is slightly better optimized.
| * Update some libtommath functions to the latest trunk versions. Small step ↵jan.nijtmans2019-05-291-26/+26
| | | | | | | | | | forward in the upgrade to (upcoming) libtommath 1.2. Advantage: simplify Tcl code accessing those functions.
* | Rename mp_get_bit to s_mp_get_bit, rename mp_tc_div_2d to mp_signed_rsh, ↵jan.nijtmans2019-05-311-1/+1
| | | | | | | | remove mp_tc_(add|or|xor) functions in favor of mp_(add|or|xor) which can now handle twos-complement. Following ongoing changes in libtommath development.
* | Merge 8.5jan.nijtmans2019-05-141-15/+15
|\ \ | |/
| * DIGIT_BIT -> MP_DIGIT_BIT, since DIGIT_BIT is deprecated in future ↵jan.nijtmans2019-05-141-15/+15
| | | | | | | | | | libtommath versions. So, better stop using it at all. Also add some other defines/typdefs for future libtommath compatibility.
* | Eliminate all usage of mp_iszero/mp_iseven/mp_isodd/mp_isneg from ↵jan.nijtmans2019-03-251-3/+3
| | | | | | | | libtommath: In the upcoming new version those will become real functions, causing possible binary incompatibility. This change makes Tcl independant from libtommath's changes.
* | 'inline static' -> 'static inline' and 'INLINE' -> 'inline', for consistancy.jan.nijtmans2017-07-031-26/+26
| |
* | Make panic in TclParseNumber() work when IEEE_FLOATING_POINT is not defined.jan.nijtmans2017-06-151-1/+1
| |
* | In comments and documentation, distinguish between __int64 (a Microsoft ↵jan.nijtmans2017-03-291-2/+2
| | | | | | | | 64-bit integer type) and int64_t (C99 equivalent)
* | [be003d570f] TclParseNumber() failed to fully implement TCL_PARSE_BINARY_ONLY.dgp2016-10-121-1/+1
| |
* | [be003d570f] TclParseNumber() failed to fully implement TCL_PARSE_OCTAL_ONLY.dgp2016-10-121-0/+9
|\ \ | |/
| * [be003d570f] TclParseNumber() failed to fully implement TCL_PARSE_OCTAL_ONLY.dgp2016-10-121-0/+6
| |
| * RefineApproximation() leaked twoMv and twoMd in one of its exits.dgp2016-01-281-0/+2
| |
* | Eliminate unnessessary end-of-line spacing. No functional change.jan.nijtmans2015-10-041-4/+4
|\ \ | |/
| * Eliminate unnessessary end-of-line spacing. No functional change.jan.nijtmans2015-10-041-99/+99
| |
* | Plug leak of two mp_ints.dgp2015-07-021-0/+2
| |
* | Silence compiler warning.dgp2015-06-241-2/+1
|\ \ | |/
| * Make sure that an input lying precisely 1/2 ULP between two floating point ↵dgp2015-06-241-8/+30
| | | | | | | | values is rounded to even.
* | Make sure that an input lying precisely 1/2 ULP between two floating point ↵Kevin B Kenny2015-06-201-8/+31
| | | | | | | | values is rounded to even.
* | Fix execute permission on many files which shouldn't have it.jan.nijtmans2013-10-171-0/+0
|\ \ | |/
| * Fix execute permission on many files which shouldn't have it.jan.nijtmans2013-10-171-0/+0
| |
* | Implement Tcl_NewBooleanObj, Tcl_DbNewBooleanObj and Tcl_SetBooleanObj as ↵jan.nijtmans2013-04-231-2/+2
|\ \ | |/ | | | | | | | | macros using Tcl_NewIntObj, Tcl_DbNewLongObj and Tcl_SetIntObj. Starting with Tcl 8.5, this is exactly the same, it only eliminates code duplication. Eliminate use of NO_WIDE_TYPE everywhere: It's exactly the same as TCL_WIDE_INT_IS_LONG
* | Remove unused variable mantDIGIT.dgp2012-06-051-3/+0
|\ \ | |/
| * Remove unused variable mantDIGIT.dgp2012-06-051-3/+0
| |
* | unused static array wtensjan.nijtmans2011-09-061-9/+0
|\ \ | |/
| * unused static array wtensjan.nijtmans2011-09-061-10/+0
| |
* | 3402540 Corrections to TclParseNumber() to make it reject invalid Nan(Hex).dgp2011-09-011-0/+3
|\ \ | |/ | | [scan Inf %g] is portable; remove constraint.
| * 3402540 Corrections to TclParseNumber() to make it reject invalid Nan(Hex)dgp2011-09-011-0/+3
| | | | | | [scan Inf %g] is portable; remove constraint.
| * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-151-1/+1
| |
* | * generic/tclAssemnbly.c: Plug another memory leak. [Bug 3384840]Kevin B Kenny2011-08-061-0/+3
| | | | | | | | * generic/tclStrToD.c: Plug another memory leak. [Bug 3386975]
* | Plugged a memory leak in double->stringKevin B Kenny2011-08-061-3/+2
|\ \ | |/ | | conversion. [Bug 3386975]
| * Plugged a memory leak in double->stringKevin B Kenny2011-08-061-3/+2
| | | | | | conversion. [Bug 3386975]
* | Use Tcl_PrintfObj to generate more (complex) error messages.dkf2011-08-051-4/+2
| |