summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMathDecls.h
Commit message (Collapse)AuthorAgeFilesLines
* Add mp_pack, mp_pack_count and mp_unpack to the libtommath stub table. Not ↵jan.nijtmans2022-11-231-9/+25
| | | | used by Tcl, but can be used by extensions (backported from 8.7)
* Add 3 (libtommath) functions to the stub table. Will be added to 8.7 too, ↵jan.nijtmans2019-12-121-9/+18
| | | | through TIP #538
* Remove mp_get_bit() from the libtommath stub table: It wasn't present in Tcl ↵jan.nijtmans2019-11-151-7/+3
| | | | 8.6.9, isn't used anywhere in Tcl, and is going to be deprecated in libtommath.
* Add support for ↵jan.nijtmans2019-11-081-9/+59
| | | | | mp_init_i32/mp_init_i64/mp_init_l/mp_init_ll/mp_init_u32/mp_init_u64/mp_init_ul/mp_init_ull/mp_set_ull, the main functions in libtommath 1.2.0 for setting values directly in mp_int's. One new stub entry (mp_set_ull), the others make use of already existing stub entries. This is 100% fully upwards compatible.
* Change mp_isodd() (back) from libtommath stub entry to macro. libtommath ↵jan.nijtmans2019-10-301-10/+3
| | | | | changed it back to macro too in its master branch, we better do the same. Better usage of mp_isneg() macro, in stead of directly comparing sign with MP_NEG/MP_ZPOS.
* Put #define's in alphabetical order. jan.nijtmans2019-10-251-15/+9
| | | | Use MP_DIGIT_BIT in stead of (deprecated) DIGIT_BIT everywhere. (just code cleanup, nothing funcional)
* Combine two libtommath stub entries, which (almost) do the samejan.nijtmans2019-10-241-9/+7
|
* Combine two libtommath stub entries, which do exactly the same. jan.nijtmans2019-10-231-7/+6
| | | Fix mp_init_set_int stub, handling the situation that mp_init() fails (however unlikely)
* Extend libtommath stub table, so extension writers can move away from ↵jan.nijtmans2019-10-231-3/+27
| | | | deprecated libtommath functions.
* Merge libtommath 1.2.0-rc3jan.nijtmans2019-10-211-116/+119
|
* Merge some libtommath changes (mainly additon of MP_CALLOC)jan.nijtmans2019-10-171-0/+3
|
* Update to latest Tcl (core-8-6-branch) and latest libtommath (1.2.0-rc1)jan.nijtmans2019-10-171-1/+5
|\
* \ Merge core-8-6-branch, and merge latest libtommathjan.nijtmans2019-07-281-2/+3
|\ \ | |/
* | Latest libtommath's "develop" branch adapted for Tcl 8.6. And Tcl 8.6 ↵jan.nijtmans2019-06-141-5/+5
|/ | | | adapted for changes in libtommath
* Rename mp_get_bit to s_mp_get_bit, rename mp_tc_div_2d to mp_signed_rsh, ↵jan.nijtmans2019-05-311-8/+11
| | | | remove mp_tc_(add|or|xor) functions in favor of mp_(add|or|xor) which can now handle twos-complement. Following ongoing changes in libtommath development.
* Merge 8.5jan.nijtmans2019-05-141-0/+7
|\
| * DIGIT_BIT -> MP_DIGIT_BIT, since DIGIT_BIT is deprecated in future ↵jan.nijtmans2019-05-141-0/+7
| | | | | | | | | | libtommath versions. So, better stop using it at all. Also add some other defines/typdefs for future libtommath compatibility.
* | Take over recent improvements from libtommath after version 1.1.0.jan.nijtmans2019-04-051-3/+4
| |
* | integrate sebres-8-6-tommath-1-1 - cherry-picking of several optimizations ↵sebres2019-04-011-12/+27
|\ \ | | | | | | | | | and simplifications of 8.7 (tommath 1.1), well-arranged branching of long/wide/bignum base and exponent cases, test-cases extended to cover all this branches and edge cases.
| * | partial cherry pick of [e8e92eb381d689ab]: One more libtommath function, ↵sebres2019-02-041-0/+6
| | | | | | | | | | | | mp_tc_div_2d, which simplifies code.
| * | partial cherry pick of [c5c83014d6]: Many simplifications in tclExecute.c, ↵sebres2019-02-041-0/+21
| | | | | | | | | | | | now that libtommath provides new functions mp_tc_and, mp_tc_or and mp_tc_xor
* | | Turn KARATSUBA_MUL_CUTOFF (insize libtommath) et al into a #define in stead ↵jan.nijtmans2019-03-281-8/+0
| | | | | | | | | | | | of exported int symbols.
* | | Eliminate all usage of mp_iszero/mp_iseven/mp_isodd/mp_isneg from ↵jan.nijtmans2019-03-251-0/+36
|/ / | | | | | | libtommath: In the upcoming new version those will become real functions, causing possible binary incompatibility. This change makes Tcl independant from libtommath's changes.
* | Update libtommath to latest stable release (1.1.0)jan.nijtmans2019-02-011-75/+98
| |
* | make genstubsdkf2015-10-281-0/+17
| |
* | Put extern "C" guards around all stub table struct definitions, so it is ↵jan.nijtmans2013-11-041-3/+5
|\ \ | |/ | | | | | | usable for C++ compilers as well without the danger of modifying the calling convention. For tclDecls.h and tclOODecls.h it was no problem, because tcl.h and tclOO.h already contain those guards. But for the other *Decls.h files (e.g. tclTomMathDecls.h) it was not correct.
| * Put extern "C" guards around all stub table struct definitions, so it is ↵jan.nijtmans2013-11-041-3/+5
| | | | | | | | | | usable for C++ compilers as well without the danger of modifying the calling convention. For tclDecls.h it was no problem, because tcl.h already contains those guards. But for the other *Decls.h files (e.g. tclTomMathDecls.h) it was not correct.
* | Simplification: don't declare struct types that are never used.jan.nijtmans2012-11-151-1/+1
| |
* | some formatting (*.decls)jan.nijtmans2012-04-041-6/+6
|\ \ | |/ | | | | remove some unused cygwin-related code some minor gcc warnings
| * some formatting (*.decls)jan.nijtmans2012-04-041-6/+6
| | | | | | | | | | move up #undef, for macro which is conflicting with later stuff. remove some unused cygwin-related code some minor gcc warnings
* | Fix roundoff gaffe in bignum-to-double conversion [Bug 3349507]Kevin B Kenny2011-07-021-0/+6
|\ \ | |/
| * Fix roundoff gaffe in bignum-to-double conversion [Bug 3349507]Kevin B Kenny2011-07-021-0/+11
| |
* | 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.
| * Make sure to use CONST/VOID in stead ofnijtmans2011-01-191-3/+3
| | | | | | | | | | | | const/void when appropriate. This allows to use const/void in the *.decls file always, genStubs will do the right thing.
| * * generic/tclInt.decls: Backport of Kevin B. Kenny's work onandreas_kupries2010-11-301-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * Backport various formatting (spacing)nijtmans2010-02-071-128/+127
| | | | | | | | | | | | | | changes from HEAD, so diffing between 8.5.x and 8.6 shows the real structural differences again. (any signature change not backported!)
* | 2010-11-29 Kevin B. Kenny <kennykb@acm.org>Kevin B Kenny2010-11-281-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.decls: * generic/tclInt.h: * 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.
* | [Patch 3034251] backport ttkGenStubs.tcl features to genStubs.tcl, partly: ↵nijtmans2010-08-191-310/+9
| | | | | | | | remove unneeded ifdeffery and put C++ guard around stubs pointer definition.
* | CONSTify various useful internal functionsnijtmans2010-05-031-19/+19
| | | | | | | | | | (TclBignumToDouble, TclCeil, TclFloor), and related tommath functions.
* | Follow-up to [2010-01-29] commit:nijtmans2010-02-051-68/+68
| | | | | | | | | | | | | | | | | | | | prevent space within stub table function parameters if the parameter type is a pointer. Minor formatting, and VOID -> void. Change signature of TclNRInterpProcCore, and TclOONewProc(Instance|)MethodEx, indicating that errorProc is a function pointer tclVar.c: fixed two gcc warnings
* | - genStubs.tcl: No longer generate a space after "*" andnijtmans2010-01-291-125/+124
| | | | | | | | | | | | | | | | | | | | immediately after a function name, so the format of function definitions in tcl*Decls.h matches all other tcl*.h header files. - Change Tcl_ArgvFuncProc, Tcl_ArgvGenFuncProc and GetFrameInfoValueProc to be function definitions, not pointers, for consistency with all other Tcl function definitions.
* | Letting CONST die a slow and graceful death, since NO_CONST wasnijtmans2008-10-221-14/+14
| | | | | | | | broken since 8.4 and no-one complained about it.
* | just a few const -> CONST (in header files and .decls files)nijtmans2008-07-241-3/+3
| | | | | | | | and CONST -> const (.c files and internal .h files)
* | fix line-endingsdas2008-07-221-785/+785
| |
* | TIP #304 implementationferrieux2008-07-211-785/+785
| |
* | * generic/tclDecls.h: make genstubsdas2008-04-081-2/+2
| | | | | | | | | | | | | | * generic/tclIntDecls.h: * generic/tclIntPlatDecls.h: * generic/tclPlatDecls.h: * generic/tclTomMathDecls.h:
* | * generic/tclDecls.h: make genstubsdas2008-04-021-11/+3
| | | | | | | | | | | | | | | | * generic/tclIntDecls.h: * generic/tclIntPlatDecls.h: * generic/tclPlatDecls.h: * generic/tclStubInit.c: * generic/tclTomMathDecls.h:
* | * README: Bump version number to 8.6a0dgp2008-04-011-1/+5
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.h: * library/init.tcl: * macosx/Tcl-Common.xcconfig: * macosx/Tcl.pbproj/default.pbxuser: * macosx/Tcl.pbproj/project.pbxproj: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README: * win/configure.in: * win/makefile.bc: * win/tcl.m4: * unix/configure: autoconf-2.59 * win/configure: * generic/tclBasic.c: Revised stubs-generation tool and interp * tools/genStubs.tcl: creation so that "tclStubsPtr" is not present * unix/Makefile.in: in libtcl.so, but is present only in libtclstub.a. This tightens up the rules for users of the stubs interfaces. [Bug 1819422] * generic/tclDecls.h: make genstubs * generic/tclIntDecls.h: * generic/tclIntPlatDecls.h: * generic/tclPlatDecls.h: * generic/tclTomMathDecls.h:
* * tools/genStubs.tcl: Updated script to no longer produce thedgp2006-11-151-154/+133
| | | | | | | | | | | | | | | _ANSI_ARGS_ wrapper in generated declarations. Also revised to accept variadic prototypes with more than one fixed argument. (This is possible since TCL_VARARGS and its limitations are no longer in use). * generic/tcl.h: Some reordering so that macro definitions do not interfere with the now _ANSI_ARGS_-less stub declarations. * generic/tclDecls.h: make genstubs * generic/tclIntDecls.h: * generic/tclIntPlatDecls.h: * generic/tclPlatDecls.h: * generic/tclTomMathDecls.h: