diff options
author | andreas_kupries <andreas_kupries@noemail.net> | 2010-11-30 20:59:27 (GMT) |
---|---|---|
committer | andreas_kupries <andreas_kupries@noemail.net> | 2010-11-30 20:59:27 (GMT) |
commit | 80c48dec26fcf255d9b1ad6140911b40f71726e2 (patch) | |
tree | 1690548d2a2cd82215101f59ba6632c4b01cc523 /generic/tclClock.c | |
parent | 9fef6968a9971c094e0945448a9589f4e796e938 (diff) | |
download | tcl-80c48dec26fcf255d9b1ad6140911b40f71726e2.zip tcl-80c48dec26fcf255d9b1ad6140911b40f71726e2.tar.gz tcl-80c48dec26fcf255d9b1ad6140911b40f71726e2.tar.bz2 |
* generic/tclInt.decls: Backport of Kevin B. Kenny's work on
* generic/tclInt.h: the Tcl Head, with help from Jeff Hobbs.
* generic/tclStrToD.c:
* generic/tclTest.c:
* generic/tclTomMath.decls:
* generic/tclUtil.c:
* tests/util.test:
* unix/Makefile.in:
* win/Makefile.in:
* win/makefile.vc: Rewrite of Tcl_PrintDouble and TclDoubleDigits
that (a) fixes a severe performance problem with floating point
shimmering reported by Karl Lehenbauer, (b) allows TclDoubleDigits
to generate the digit strings for 'e' and 'f' format, so that it
can be used for tcl_precision != 0 (and possibly later for [format]),
(c) fixes [Bug 3120139] by making TclPrintDouble inherently
locale-independent, (d) adds test cases to util.test for
correct rounding in difficult cases of TclDoubleDigits where fixed-
precision results are requested. (e) adds test cases to util.test for
the controversial aspects of [Bug 3105247]. As a side effect, two
more modules from libtommath (bn_mp_set_int.c and bn_mp_init_set_int.c)
are brought into the build, since the new code uses them.
* generic/tclIntDecls.h:
* generic/tclStubInit.c:
* generic/tclTomMathDecls.h: Regenerated.
FossilOrigin-Name: 769801ace1040dc40a1bcbc3f02ea15b8258c8fb
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r-- | generic/tclClock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c index 7df1759..075e3a2 100644 --- a/generic/tclClock.c +++ b/generic/tclClock.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclClock.c,v 1.66.2.3 2009/11/12 16:31:15 dgp Exp $ + * RCS: @(#) $Id: tclClock.c,v 1.66.2.4 2010/11/30 20:59:27 andreas_kupries Exp $ */ #include "tclInt.h" @@ -1513,7 +1513,7 @@ GetJulianDayFromEraYearMonthDay( fields->julianDay = JDAY_1_JAN_1_CE_JULIAN - 1 + fields->dayOfMonth + daysInPriorMonths[year%4 == 0][month - 1] - + (365 * ym1) + + (ONE_YEAR * ym1) + ym1o4; } } |