summaryrefslogtreecommitdiffstats
path: root/libtommath
Commit message (Collapse)AuthorAgeFilesLines
* Fix mp_cnt_lsb() signature, so it matches the signature used in Tcljan.nijtmans2016-11-182-1/+106
|\
| * Fix mp_cnt_lsb() signature, so it matches the signature used in Tcl. Add two ↵jan.nijtmans2016-11-189-8696/+1
| | | | | | | | missing "static" keywords in tclUnixNotfy.c. Remove some more files in libtommath directory which are not useful for Tcl.
* | Fix [e6f27aa56fa51bfc1752ce768bf0d301c60bfd2c|e6f27aa56f]: Update libtommath ↵jan.nijtmans2016-11-18149-15323/+9276
|\ \ | |/ |/| | | to 1.0
| * Restore bn_mp_radix_size.c to exact copy of libtommath-1.0 version: Since ↵libtommath_1_0jan.nijtmans2016-11-171-11/+2
| | | | | | | | the radix_size of "9" should return 2, not 3. Add test-case to prove that.
| * Restore bn_mp_add_d.c to exact copy of libtommath-1.0 version: Since the ↵jan.nijtmans2016-11-171-3/+2
| | | | | | | | mp_clamp() function already restores the sign of it's argument to positive if c->used ==0, it is not necessary to do that twice. Therefore, the original version of the code is correct.
| * Bring in fix for mp_iseven().... almost missed that .... This should be ↵jan.nijtmans2016-11-171-1/+1
| |\ | | | | | | | | | given a dedicated test-case. Now everything taken from "gahr-ticket-e6f27aa56f" branch is handled.
| | * [e6f27aa56f] Add files I missed in my previous commitgahr2016-03-1310-0/+755
| | |
| | * [e6f27aa56f] Initial import of libtommath-1.0gahr2016-03-11196-31819/+9930
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit brings in libtommath-1.0, as of tag v1.0 of the upstream repository at https://github.com/libtom/libtommath. Only the top-level directory has been imported: the demo, etc, logs, mtest, pics, pre_gen, and tombc directories have been removed from our repo. The stubs tables have been regenerated to accomodate for the new function: mp_expt_d_ex(mp_int *a, mp_digit b, mp_int *c, int fast); See https://github.com/libtom/libtommath/commit/e9b1837 for details. Only the unix build system has been modified for now. Windows and Mac OSX will come later.
| * | Merge trunk. Re-generate tclTomMath.h. Use faster exponentiation-function ↵jan.nijtmans2016-11-1779-37631/+556
| |\ \ | | | | | | | | | | | | from libtommath 1.0 (in tclExecute.c).
| * \ \ (experimental) Upgrade to libtommath 1.0 (actually by merging all changes ↵jan.nijtmans2016-11-16157-9958/+17154
| |\ \ \ | | |_|/ | |/| | | | | | between libtommath 0.42.0 and 1.0). Still to be tested thourougly, before doing anything with it.
| | * | import libtommath 1.0jan.nijtmans2016-11-16179-16006/+23148
| | | |
| | * | Import of tommath 0.42.0jan.nijtmans2011-03-14148-856/+6520
| | | |
| | * | Import of libtommath 0.41jan.nijtmans2011-03-1417-552/+1138
| | | | | | | | | | | | Import of libtommath 0.41
| | * | Import of libtommath 0.40jan.nijtmans2011-03-145-9/+17
| | | |
| | * | re-import ltm-0.39, with original RCS-ID'sjan.nijtmans2011-03-14139-537/+537
| | | |
| | * | Import of libtommath 0.39+Kevin B Kenny2006-12-01133-5198/+985
| | | |
| | * | Import of libtommath 0.37Kevin B Kenny2005-12-2717-394/+431
| | | |
| | * | re-import of three damaged PDF'sKevin B Kenny2005-09-263-0/+0
| | | |
| | * | Import of libtommath 0.36Kevin B Kenny2005-09-26156-445/+1587
| | | |
| | * | Import of tommath 0.35Kevin B Kenny2005-04-1068-4385/+6792
| | | |
| | * | Import of libtommath 0.33 Kevin B Kenny2005-01-19200-0/+57261
| | /
* | | Fix libtommath's mp_radix_size() function such that it returns 2 for ↵jan.nijtmans2016-11-172-16/+14
|\ \ \ | |_|/ |/| | | | | single-digit numbers. Add testcases for mp_radix_size() and mp_iseven(). Undo useless change in bn_mp_add_d.c (bring back libtommath's version).
| * | Fix libtommath's mp_radix_size() function such that it returns 2 for ↵jan.nijtmans2016-11-172-16/+14
| | | | | | | | | | | | single-digit numbers. Add testcases for mp_radix_size() and mp_iseven(). Undo useless change in bn_mp_add_d.c (bring back libtommath's version).
* | | Remove subdirectories of "libtommath", and various individual related files, ↵jan.nijtmans2016-11-1760-23840/+0
| |/ |/| | | | | not taking any part in the Tcl build. Makes the Tcl distribution smaller without sacrificing anything.
* | Fix roundoff gaffe in bignum-to-double conversion [Bug 3349507]Kevin B Kenny2011-07-021-1/+1
|\ \ | |/
* | Apply non-comment changes to take our fork of libtommath up to tracking ↵dkf2011-03-149-21/+54
|\ \ | |/ | | | | 0.42.0 from 0.39.
| * Apply non-comment changes to take our fork of libtommath up to tracking 0.42.0 libtommath_merge_0_42_0dkf2011-03-149-21/+54
| | | | | | from 0.39.
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-02139-1054/+1
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-02139-1054/+1
| | | | | | more harm than good. Purged them.
| * Various trivial fixes, discovered during CYGWIN porting attempt. All ↵nijtmans2010-01-061-3/+3
| | | | | | | | backported from trunk.
| * * libtommath/bn_mp_sqrt.c (bn_mp_sqrt): Handle the case whereKevin B Kenny2008-10-051-4/+21
| | | | | | | | | | | | | | * tests/expr.test (expr-47.13): a number's square root is between n<<DIGIT_BIT and n<<DIGIT_BIT+1. [Bug 2143288] Thanks to Malcolm Boffey (malcolm.boffey@virgin.net) for the patch.
* | CONSTify various useful internal functionsnijtmans2010-05-0310-38/+38
| | | | | | | | | | (TclBignumToDouble, TclCeil, TclFloor), and related tommath functions.
* | Use "tclIO.h" and "tclTomMathDecls.h" everywherenijtmans2010-05-031-30/+30
| |
* | Make error message in "try" implementationnijtmans2010-03-231-4/+4
| | | | | | | | exactly the same as the one in "return"
* | Fix gcc warning, using gcc-4.3.4 on cygwinnijtmans2009-12-111-3/+3
| | | | | | | | | | warning: array subscript has type 'char' win/makefile.vc Revert to version 1.203 [Bug #2912773]
* | Fix gcc warning, using gcc-4.3.4 on cygwinnijtmans2009-12-111-3/+3
| | | | | | | | | | warning: array subscript has type 'char' win/makefile.vc Revert to version 1.203 [Bug #2912773]
* | * libtommath/bn_mp_sqrt.c (bn_mp_sqrt): Handle the case whereKevin B Kenny2008-10-051-4/+21
|/ | | | | | | * tests/expr.test (expr-47.13): a number's square root is between n<<DIGIT_BIT and n<<DIGIT_BIT+1. [Bug 2143288] Thanks to Malcolm Boffey (malcolm.boffey@virgin.net) for the patch.
* Fixed results of bollixed commit of libtommath 0.39Kevin B Kenny2006-12-014-167/+9
|
* TIP#287 IMPLEMENTATIONdgp2006-12-011-2/+4
| | | | | | | | | | * doc/chan.n: New subcommand [chan pending]. * generic/tclBasic.c: Thanks to Michael Cleverly for proposal * generic/tclInt.h: and implementation. * generic/tclIOCmd.c: * library/init.tcl: * tests/chan.test: * tests/ioCmd.test:
* fix typo: 0,0 -> 0.0das2006-12-011-3/+3
|
* fix gcc warning: "suggest parentheses around comparison in operand of &"das2006-12-011-3/+3
|
* Upgrade to tommath 0.39 plus patches from TomKevin B Kenny2006-12-0110-22/+190
|
* Import of libtommath 0.39+Kevin B Kenny2006-12-01128-5183/+970
|
* fixed bug in floating point initial approximation that caused convergence ↵Kevin B Kenny2006-11-301-4/+10
| | | | failure
* Merge changesKevin B Kenny2005-12-273-7/+11
|
* Import of libtommath 0.37Kevin B Kenny2005-12-2714-387/+418
|
* Corrected bugs in tommath installation, improved tommath square root ↵Kevin B Kenny2005-12-271-8/+50
| | | | performance, patched around a [clock scan] issue with time zones
* TIP#237 IMPLEMENTATIONdgp2005-10-081-4/+5
| | | | | | [kennykb-numerics-branch] Resynchronized with the HEAD; at this checkpoint [-rkennykb-numerics-branch-20051008], the HEAD and kennykb-numerics-branch contain identical code.
* merge tommath 0.36 changes into HEADKevin B Kenny2005-09-265-26/+28
|
* re-import of three damaged PDF'sKevin B Kenny2005-09-263-0/+0
|