diff options
author | andreas_kupries <akupries@shaw.ca> | 2010-11-30 20:59:27 (GMT) |
---|---|---|
committer | andreas_kupries <akupries@shaw.ca> | 2010-11-30 20:59:27 (GMT) |
commit | 94ead3bc1f6658967c1ea17f52b7d885f1534ca9 (patch) | |
tree | 1690548d2a2cd82215101f59ba6632c4b01cc523 /generic/tclStubInit.c | |
parent | 881d5025bf794494317b6490233cde4438ed8d5e (diff) | |
download | tcl-94ead3bc1f6658967c1ea17f52b7d885f1534ca9.zip tcl-94ead3bc1f6658967c1ea17f52b7d885f1534ca9.tar.gz tcl-94ead3bc1f6658967c1ea17f52b7d885f1534ca9.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.
Diffstat (limited to 'generic/tclStubInit.c')
-rw-r--r-- | generic/tclStubInit.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c index a8ed3bd..35fb5df 100644 --- a/generic/tclStubInit.c +++ b/generic/tclStubInit.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclStubInit.c,v 1.150.2.4 2010/11/30 18:16:02 hobbs Exp $ + * RCS: @(#) $Id: tclStubInit.c,v 1.150.2.5 2010/11/30 20:59:28 andreas_kupries Exp $ */ #include "tclInt.h" @@ -318,6 +318,12 @@ TclIntStubs tclIntStubs = { NULL, /* 241 */ NULL, /* 242 */ TclDbDumpActiveObjects, /* 243 */ + NULL, /* 244 */ + NULL, /* 245 */ + NULL, /* 246 */ + NULL, /* 247 */ + NULL, /* 248 */ + TclDoubleDigits, /* 249 */ }; TclIntPlatStubs tclIntPlatStubs = { @@ -473,6 +479,8 @@ TclTomMathStubs tclTomMathStubs = { TclBN_s_mp_mul_digs, /* 58 */ TclBN_s_mp_sqr, /* 59 */ TclBN_s_mp_sub, /* 60 */ + TclBN_mp_init_set_int, /* 61 */ + TclBN_mp_set_int, /* 62 */ }; static TclStubHooks tclStubHooks = { |