summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMath.decls
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.7jan.nijtmans2019-11-151-4/+1
|\
| * Merge 8.6jan.nijtmans2019-11-151-3/+0
| |\
| | * Remove mp_get_bit() from the libtommath stub table: It wasn't present in Tcl ↵jan.nijtmans2019-11-151-3/+0
| | | | | | | | | | | | 8.6.9, isn't used anywhere in Tcl, and is going to be deprecated in libtommath.
| * | Merge 8.6. jan.nijtmans2019-11-151-2/+2
| |\ \ | | |/ | | | Also fix the use of WUR (warn unused result) in libtommath function signatures: this cannot be used in combination with "deprecated" or "nostub"
| | * Add support for ↵jan.nijtmans2019-11-081-4/+7
| | | | | | | | | | | | | | | 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.
* | | Merge 8.7. Finish implementation.jan.nijtmans2019-11-121-21/+15
|\ \ \ | |/ /
* | | Merge 8.7jan.nijtmans2019-11-111-13/+13
|\ \ \ | |/ /
| * | Now that libtommath has mp_init_l/mp_init_ll/mp_init_ull, use those instead ↵jan.nijtmans2019-11-081-6/+9
| | | | | | | | | | | | of the legacy TclBNInitBignumFromLong/TclBNInitBignumFromWideInt/TclBNInitBignumFromWideUInt
| * | Merge 8.6. jan.nijtmans2019-11-081-0/+3
| |\ \ | | |/ | | | Add support for libtommath's mp_set_ll() function, since that's the replacement for the deprecated TclBNInitBignumFromWideInt() function.
| * | Deprecate mp_div_3(): Will be private function in future libtommath, not ↵jan.nijtmans2019-11-071-2/+2
| | | | | | | | | | | | | | | used in Tcl. Deprecate mp_sqr() stub entry: Will be converted to macro calling mp_mul().
* | | More WIP: All makefile builds appear to work fine, makefile.vc build still ↵jan.nijtmans2019-11-051-10/+16
| | | | | | | | | | | | to be done.
* | | Add compat/stdint.h, upgrade to libtommath 1.2.0, adapt as much as possible ↵jan.nijtmans2019-11-011-14/+14
|/ / | | | | | | accordingly (still WIP)
* | Merge 8.7jan.nijtmans2019-10-311-4/+1
|\ \
| * \ Merge 8.6jan.nijtmans2019-10-301-4/+1
| |\ \ | | |/
| | * Change mp_isodd() (back) from libtommath stub entry to macro. libtommath ↵jan.nijtmans2019-10-301-3/+0
| | | | | | | | | | | | | | | 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.
* | | WIP: Use unsigned int in stead of mp_digit in libtommath stub entries. jan.nijtmans2019-10-291-9/+9
|/ / | | | | This make libtommath's API independant whether compiled with MP_64BIT or not
* | More code cleanup related to libtommath 1.2.0: Adapt naming of (internal) ↵jan.nijtmans2019-10-251-2/+2
| | | | | | | | symbols to new conventions. Remove deprecated declarations which were never implemented/included by Tcl.
* | Merge 8.6jan.nijtmans2019-10-241-5/+2
|\ \ | |/
| * Combine two libtommath stub entries, which (almost) do the samejan.nijtmans2019-10-241-4/+1
| |
| * Combine two libtommath stub entries, which do exactly the same. jan.nijtmans2019-10-231-3/+0
| | | | | | Fix mp_init_set_int stub, handling the situation that mp_init() fails (however unlikely)
* | Add support for libtommath's MP_WUR annotation to genStubs.tcl. Not enforced ↵jan.nijtmans2019-10-241-50/+50
| | | | | | | | yet by the Tcl core, but extensions will encounter the libtommath warnings. Can be switched off.
* | Deprecate mp_unsigned_bin_size, mp_init_set_int, mp_set_int, which are ↵jan.nijtmans2019-10-231-6/+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.6.jan.nijtmans2019-10-231-0/+3
|\ \ | |/ | | Also unbreak windows build, broken since [0f2870649c804dd8].
| * Extend libtommath stub table, so extension writers can move away from ↵jan.nijtmans2019-10-231-1/+14
| | | | | | | | deprecated libtommath functions.
* | Deprecate mp_get_bit, mp_expt_d_ex, mp_toradix_n, mp_to_unsigned_bin, ↵jan.nijtmans2019-10-221-7/+17
| | | | | | | | | | mp_to_unsigned_bin_n, because they are deprecated in libtommath 1.2.0 too. Add replacement functions mp_to_ubin, mp_ubin_size and mp_to_radix to libtommath stub table.
* | Merge 8.6jan.nijtmans2019-10-221-67/+65
|\ \ | |/
| * Merge libtommath 1.2.0-rc3jan.nijtmans2019-10-211-58/+58
| |
| * Merge core-8-6-branch, and merge latest libtommathjan.nijtmans2019-07-281-1/+1
| |\
| * | Latest libtommath's "develop" branch adapted for Tcl 8.6. And Tcl 8.6 ↵jan.nijtmans2019-06-141-1/+1
| |/ | | | | | | adapted for changes in libtommath
* | Merge 8.6jan.nijtmans2019-05-311-1/+1
|\ \ | |/
| * Rename mp_get_bit to s_mp_get_bit, rename mp_tc_div_2d to mp_signed_rsh, ↵jan.nijtmans2019-05-311-1/+1
| | | | | | | | 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.
| * integrate sebres-8-6-tommath-1-1 - cherry-picking of several optimizations ↵sebres2019-04-011-0/+15
| |\ | | | | | | | | | 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/+4
| | | | | | | | | | | | mp_tc_div_2d, which simplifies code.
| | * partial cherry pick of [c5c83014d6]: Many simplifications in tclExecute.c, ↵sebres2019-02-041-0/+11
| | | | | | | | | | | | now that libtommath provides new functions mp_tc_and, mp_tc_or and mp_tc_xor
| * | Eliminate all usage of mp_iszero/mp_iseven/mp_isodd/mp_isneg from ↵jan.nijtmans2019-03-251-0/+7
| |/ | | | | | | 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-34/+39
| |
* | Make internal libtommath stub entries deprecated: Those are not supposed to ↵jan.nijtmans2019-03-141-11/+11
| | | | | | | | be called in extensions
* | Use mp_get_bit() instead of mp_iseven()/mp_isodd(): Those latter functions ↵jan.nijtmans2019-03-081-0/+3
| | | | | | | | are macro's currently, but will be real function in next libtommath. Bad idea for Tcl to depend on ...
* | One more libtommath function, mp_tc_div_2d, which simplifies code. Some more ↵jan.nijtmans2019-01-221-0/+4
| | | | | | | | code readability improvements.
* | Many simplifications in tclExecute.c, now that libtommath provides new ↵jan.nijtmans2019-01-221-0/+11
| | | | | | | | functions mp_tc_and, mp_tc_or and mp_tc_xor
* | merge 8.6jan.nijtmans2018-07-311-0/+3
|\ \ | |/
* | 'const'ify more libtommath functions. All functions in ↵jan.nijtmans2017-09-151-6/+6
| | | | | | | | generic/tclTomMath.decls (used by Tcl) are done now.
* | Make mp_get_long and mp_set_long available to tommath-enabled Tcl ↵jan.nijtmans2017-09-131-3/+9
| | | | | | | | extensions. Deprecate the internal TclBNInitBignumFrom* functions, in favor of the official tommath functions with the same purpose.
* | Many 'const' addtions in libtommath where it makes sense. To be submitted ↵jan.nijtmans2017-09-111-25/+25
| | | | | | | | back to the libtommath guys.
* | Add some more functions from libtommath for availability within Tcl (mainly ↵jan.nijtmans2017-09-081-2/+9
| | | | | | | | the 'long long' variants). Add more 'const' keywords there too.
* | Fix [e6f27aa56fa51bfc1752ce768bf0d301c60bfd2c|e6f27aa56f]: Update libtommath ↵jan.nijtmans2016-11-181-2/+7
|\ \ | |/ |/| | | to 1.0
| * (experimental) Upgrade to libtommath 1.0 (actually by merging all changes ↵jan.nijtmans2016-11-161-0/+5
|/ | | | between libtommath 0.42.0 and 1.0). Still to be tested thourougly, before doing anything with it.
* Fix comments at the top of the *.decls files, which are not correct any more ↵jan.nijtmans2015-11-241-1/+1
|\ | | | | | | for a long long time
| * Fix comments at the top of the *.decls files, which are not correct any more ↵jan.nijtmans2015-11-241-1/+1
| | | | | | | | for a long long time.
* | Expose some of the TclBN operations through the internal API, so clients of ↵dkf2015-10-281-4/+19
| | | | | | | | the bignum code don't need to use tclTomMath.h directly.