summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMathInterface.c
Commit message (Collapse)AuthorAgeFilesLines
* Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-1/+1
| | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* Merge 8.7jan.nijtmans2019-11-111-60/+0
|\
| * Now that libtommath has mp_init_l/mp_init_ll/mp_init_ull, use those instead ↵jan.nijtmans2019-11-081-54/+0
| | | | | | | | of the legacy TclBNInitBignumFromLong/TclBNInitBignumFromWideInt/TclBNInitBignumFromWideUInt
| * Merge 8.6. jan.nijtmans2019-11-081-13/+7
| |\ | | | | | | Add support for libtommath's mp_set_ll() function, since that's the replacement for the deprecated TclBNInitBignumFromWideInt() function.
* | | Add compat/stdint.h, upgrade to libtommath 1.2.0, adapt as much as possible ↵jan.nijtmans2019-11-011-3/+3
| | | | | | | | | | | | accordingly (still WIP)
* | | Re-base to core-8-branchjan.nijtmans2019-11-011-1/+1
|\ \ \ | |/ / |/| |
| * | Merge 8.7. Complete implementation for MSVC and for UNIX.jan.nijtmans2019-04-091-1/+1
| | |
* | | Deprecate mp_unsigned_bin_size, mp_init_set_int, mp_set_int, which are ↵jan.nijtmans2019-10-231-2/+3
| | | | | | | | | | | | | | | deprecated in libtommath 1.2.0. In stead, add new function mp_set_ul to the build (mp_ubin_size was already included in the build earlier)
* | | Merge 8.6jan.nijtmans2019-10-221-9/+9
|\ \ \ | | |/ | |/|
| * | Latest libtommath's "develop" branch adapted for Tcl 8.6. And Tcl 8.6 ↵jan.nijtmans2019-06-141-3/+3
| | | | | | | | | | | | adapted for changes in libtommath
| * | Merge 8.5jan.nijtmans2019-05-141-2/+2
| |\ \
| | * | DIGIT_BIT -> MP_DIGIT_BIT, since DIGIT_BIT is deprecated in future ↵jan.nijtmans2019-05-141-2/+2
| | | | | | | | | | | | | | | | | | | | libtommath versions. So, better stop using it at all. Also add some other defines/typdefs for future libtommath compatibility.
| | * | remove stray calls to Tcl_Alloc and friends: the core should only use ↵mig2013-01-021-3/+3
| | | | | | | | | | | | | | | | ckalloc to allow MEM_DEBUG to work properly
* | | | Merge 8.6jan.nijtmans2019-04-111-2/+2
|\ \ \ \ | |/ / / | | | / | |_|/ |/| |
| * | Only use special mp_sqrt() code when double format/tommath format are ↵jan.nijtmans2019-04-111-4/+2
| | | | | | | | | | | | | | | | | | exactly what's expected. Otherwise, use original always-working tommath code. Simplify overflow check in bignum expononent code, not using bignums where it's not necessary. Don't overallocate bignums when using wideint's only.
| * | Turn KARATSUBA_MUL_CUTOFF (insize libtommath) et al into a #define in stead ↵jan.nijtmans2019-03-281-78/+3
| | | | | | | | | | | | of exported int symbols.
* | | Eliminate usage of mp_isneg(), just check bignum->sign directly (as ↵jan.nijtmans2019-03-151-35/+3
| | | | | | | | | | | | | | | libtommath itself does) Make TclInitBugnumFromLong() a static function in stubtable only, as it isn't used by Tcl anymore.
* | | Remove some unnecessary #if 0 sections. Fix comments and panic messages. No ↵jan.nijtmans2017-09-141-78/+3
| | | | | | | | | | | | functional changes.
* | | Make mp_get_long and mp_set_long available to tommath-enabled Tcl ↵jan.nijtmans2017-09-131-67/+22
|/ / | | | | | | extensions. Deprecate the internal TclBNInitBignumFrom* functions, in favor of the official tommath functions with the same purpose.
* | remove stray calls to Tcl_Alloc and friends: the core should only use ↵mig2013-01-021-3/+3
| | | | | | | | ckalloc to allow MEM_DEBUG to work properly
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | 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-021-2/+0
| | | | | | more harm than good. Purged them.
* | [Patch 2997642] many type casts needed when using Tcl_Pkg* API. Remaining part.nijtmans2010-08-311-2/+2
| | | | | | | | Typo in rules.vc
* | If tclInt.h or tclPort.h is alreadynijtmans2010-04-271-2/+1
| | | | | | | | | | | | | | included, don't include <limits.h> again. Follow-up to [Bug 2991415]: tclport.h #included before limits.h See comments in [Bug 2991415]
* | More tidying up (whitespace, spelling, useless parentheses, useless casts)dkf2010-02-241-4/+4
| |
* | reverted earlier rename from tcl*Stubs tonijtmans2010-02-151-3/+3
| | | | | | | | | | | | | | | | tcl*ConstStubs, it's not necessary at all. tclEnsemble.c: Fix signed-unsigned mismatch make tclWinProcs "const" Add first part of mslu support, See [Feature Request #2819611]
* | Follow-up to earlier commit today:nijtmans2010-02-051-3/+3
| | | | | | | | | | | | Eliminate the need for an extra Stubs Pointer for adressing a static stub table: Just change the exported table from static to MODULE_SCOPE.
* | * generic/tclInt.h: make stubs tables 'static const' anddas2008-04-161-3/+3
|/ | | | | | | | * generic/tclStubInit.c: export only module-scope pointers to * generic/tclStubLib.c: the main stubs tables (for package * tools/genStubs.tcl: initialization). [Patch 1938497] * generic/tclBasic.c (Tcl_CreateInterp): * generic/tclTomMathInterface.c (TclTommath_Init):
* merge stable branch onto HEADdgp2007-12-131-1/+1
|
* eschew superfluous whitespacedkf2007-11-191-3/+3
|
* Complete the purge of K&R function definitions from manually-written code.dkf2007-04-161-3/+3
|
* TIP#268 IMPLEMENTATIONandreas_kupries2006-09-221-2/+4
| | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: Regenerated from tcl.decls. * generic/tclStubInit.c: * doc/PkgRequire.3: Documentation of extended API, * doc/package.n: extended testsuite. * tests/pkg.test: * generic/tcl.decls: Implementation. * generic/tclBasic.c: * generic/tclConfig.c: * generic/tclInt.h: * generic/tclPkg.c: * generic/tclTest.c: * generic/tclTomMathInterface.c: * library/init.tcl: * library/package.tcl: * library/tm.tcl:
* Export stubs for libtommath; fix mingw compiler warningsKevin B Kenny2005-12-131-2/+77
|
* quick typo fix; testingdgp2005-10-131-2/+2
|
* Formattingdkf2005-10-121-53/+66
|
* TIP#237 IMPLEMENTATIONdgp2005-10-081-1/+81
| | | | | | [kennykb-numerics-branch] Resynchronized with the HEAD; at this checkpoint [-rkennykb-numerics-branch-20051008], the HEAD and kennykb-numerics-branch contain identical code.
* Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-0/+143