summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMathDecls.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix [b241e4ccc0]: Error while building with Tcl 8.7a5...jan.nijtmans2022-01-141-5/+5
|
* Fix "make checkstubs": A few more MODULE_SCOPE libtommath functionsjan.nijtmans2021-02-241-1/+6
|
* Make sure MODULE_SCOPE is always defined correctly, for C++ compilers toojan.nijtmans2021-01-251-1/+5
|
* Add mp_unpack() to the libtommath stub table, so this function is available ↵jan.nijtmans2021-01-131-3/+9
| | | | to extensions (and to Tcl itself, but not used yet)
* Possible simple solution for [4663e0636]: If TCL_NO_TOMMATH_H is defined, ↵jan.nijtmans2020-05-191-1/+1
| | | | tclTomMath.h provides its own usable mp_int type (and some more) without the need for <tommath.h>
* Merge 8.7 and (hopefully) fix Travis build with C++jan.nijtmans2019-12-131-1/+9
|\
| * Optimize mp_mul for the case a==bjan.nijtmans2019-12-131-0/+3
|/
* Tweak visibility of some libtommath symbols and add --with-system-libtommath ↵jan.nijtmans2019-11-251-4/+27
| | | | configure option (as requested by Pietro Cerutti)
* Update makefile.vc and rules.vc for using libtommath.dll/zlib1.dll in stead ↵jan.nijtmans2019-11-181-1/+1
| | | | of statically linking libtommath, whenever possible.
* Merge 8.7jan.nijtmans2019-11-151-10/+4
|\
| * Merge 8.6jan.nijtmans2019-11-151-8/+3
| |\
| | * 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.
| * | Merge 8.6. jan.nijtmans2019-11-151-5/+5
| |\ \ | | |/ | | | 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-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.
* | | Merge 8.7. Finish implementation.jan.nijtmans2019-11-121-47/+66
|\ \ \ | |/ /
* | | Merge 8.7jan.nijtmans2019-11-111-89/+144
|\ \ \ | |/ /
| * | Now that libtommath has mp_init_l/mp_init_ll/mp_init_ull, use those instead ↵jan.nijtmans2019-11-081-12/+49
| | | | | | | | | | | | of the legacy TclBNInitBignumFromLong/TclBNInitBignumFromWideInt/TclBNInitBignumFromWideUInt
| * | Merge 8.6. jan.nijtmans2019-11-081-3/+6
| |\ \ | | |/ | | | 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-4/+10
| | | | | | | | | | | | | | | 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-110/+94
| | | | | | | | | | | | to be done.
* | | Add compat/stdint.h, upgrade to libtommath 1.2.0, adapt as much as possible ↵jan.nijtmans2019-11-011-36/+38
|/ / | | | | | | accordingly (still WIP)
* | Merge 8.7jan.nijtmans2019-10-311-13/+6
|\ \
| * \ Merge 8.6jan.nijtmans2019-10-301-12/+5
| |\ \ | | |/
| | * 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.
* | | More tweaks, hopefully fixing the Travis buildjan.nijtmans2019-10-301-22/+13
| | |
* | | More tweaksjan.nijtmans2019-10-291-4/+8
| | |
* | | WIP: Use unsigned int in stead of mp_digit in libtommath stub entries. jan.nijtmans2019-10-291-27/+57
|/ / | | | | 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-10/+10
| | | | | | | | symbols to new conventions. Remove deprecated declarations which were never implemented/included by Tcl.
* | Merge 8.6. jan.nijtmans2019-10-251-18/+9
|\ \ | |/ | | Also remove unused variable in unix/tclUnixFile.c
| * 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)
* | Merge 8.6jan.nijtmans2019-10-241-15/+12
|\ \ | |/
| * 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)
* | Add support for libtommath's MP_WUR annotation to genStubs.tcl. Not enforced ↵jan.nijtmans2019-10-241-100/+100
| | | | | | | | 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-17/+17
| | | | | | | | | | 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-3/+10
|\ \ | |/ | | Also unbreak windows build, broken since [0f2870649c804dd8].
| * Extend libtommath stub table, so extension writers can move away from ↵jan.nijtmans2019-10-231-3/+27
| | | | | | | | deprecated libtommath functions.
* | Deprecate mp_get_bit, mp_expt_d_ex, mp_toradix_n, mp_to_unsigned_bin, ↵jan.nijtmans2019-10-221-16/+38
| | | | | | | | | | 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-150/+162
|\ \ | |/
| * 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
* | Merge 8.6jan.nijtmans2019-05-311-8/+12
|\ \ | |/
| * 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.6jan.nijtmans2019-05-141-0/+7
|\ \ | |/
| * 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.
* | | Merge 8.6jan.nijtmans2019-04-051-6/+11
|\ \ \ | |/ /