Overview
| Artifact ID: | ef55c33a76f4e91b0aa57581581f7407c8e3254f |
|---|---|
| Ticket: | 3120139fffffffffffffffffffffffffffffffff
Tcl_PrintDouble not locale-safe |
| User & Date: | kennykb on 2010-11-28 00:49:55 |
Changes
- icomment:
The attached patch is a complete rewrite of TclDoubleDigits, motivated largely by performance considerations. It exploits a number of important special cases to avoid hideously expensive mp_div operations; for all numbers less than 10**26, it requires no mp_div calls, and for numbers in that range that are at least 10**-3, it requires no bignum arithmetic at all. It is well tested only on Linux-x86 -- and no attempt has been made to tweak the build system to add the two additional needed libtommath files to the MacOSX build. It should be at least vetted on Windows (and the Mac build repaired and tested) before committing. It's a big enough change that I'm a little nervous about backporting it, and I welcome advice.
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"