summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMath.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove compat/stdint.h and compat/stdlib.h: All C-compilers nowadays have it.jan.nijtmans2023-06-261-7/+1
|
* Fix tclTomMath.h (from prev commit)jan.nijtmans2023-04-221-7/+6
|
* Fix [2a5cb49733ff]: Make TCL_NO_TOMMATH_H sufficient for tclTomMathDecls.hjan.nijtmans2023-04-221-0/+9
|
* On Cygwin, dev_t == unsigned, and long long == longjan.nijtmans2022-12-051-1/+1
|
* Possible simple solution for [4663e0636]: If TCL_NO_TOMMATH_H is defined, ↵jan.nijtmans2020-05-191-1/+32
| | | | tclTomMath.h provides its own usable mp_int type (and some more) without the need for <tommath.h>
* If Tcl is built with external libtommath (TCL_WITH_EXTERNAL_TOMMATH is ↵jan.nijtmans2020-05-181-4/+6
| | | | | defined), do the tests with the external libtommath too. Also, don't try to include <tommath.h> if BN_H_ is already defined.
* Merge 8.7jan.nijtmans2019-11-281-1/+1
|\
* \ Merge 8.7. Finish implementation.jan.nijtmans2019-11-121-4/+0
|\ \ | |/
* | Merge 8.7jan.nijtmans2019-11-111-1/+0
|\ \ | |/
| * Merge 8.6. jan.nijtmans2019-11-081-10/+10
| |\ | | | | | | Add support for libtommath's mp_set_ll() function, since that's the replacement for the deprecated TclBNInitBignumFromWideInt() function.
* | | More WIP: All makefile builds appear to work fine, makefile.vc build still ↵jan.nijtmans2019-11-051-1082/+11
|/ / | | | | | | to be done.
* | Merge 8.6jan.nijtmans2019-10-301-6/+2
|\ \ | |/
| * Change mp_isodd() (back) from libtommath stub entry to macro. libtommath ↵jan.nijtmans2019-10-301-6/+2
| | | | | | | | | | 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.
* | Don't typedef mp_digit in tcl.h anymore, it is supposed to be brought in ↵jan.nijtmans2019-10-281-36/+36
| | | | | | | | | | from tclTomMath.h. Add test in configure scripts for <stdint.h> and <stdbool.h>. Not used by Tcl yet, probably handy for TEA extensions wanting to use that ;-)
* | More code cleanup related to libtommath 1.2.0: Adapt naming of (internal) ↵jan.nijtmans2019-10-251-25/+0
| | | | | | | | symbols to new conventions. Remove deprecated declarations which were never implemented/included by Tcl.
* | Add support for libtommath's MP_WUR annotation to genStubs.tcl. Not enforced ↵jan.nijtmans2019-10-241-2/+4
| | | | | | | | yet by the Tcl core, but extensions will encounter the libtommath warnings. Can be switched off.
* | Merge 8.6.jan.nijtmans2019-10-231-2/+6
|\ \ | |/ | | Also unbreak windows build, broken since [0f2870649c804dd8].
| * Extend libtommath stub table, so extension writers can move away from ↵jan.nijtmans2019-10-231-2/+6
| | | | | | | | deprecated libtommath functions.
* | Merge 8.6jan.nijtmans2019-10-221-195/+458
|\ \ | |/
| * Merge libtommath 1.2.0-rc3jan.nijtmans2019-10-211-63/+230
| |
| * Update tclTomMath.h with changes from tommath.hjan.nijtmans2019-10-181-35/+48
| |
| * Update to latest Tcl (core-8-6-branch) and latest libtommath (1.2.0-rc1)jan.nijtmans2019-10-171-20/+44
| |\ | |/ |/|
| * VC++ 6.0 doesn't know the uLL number postfixjan.nijtmans2019-06-301-1/+1
| |
| * Fix compilation on VC++ 6.0jan.nijtmans2019-06-301-1/+1
| |
| * Merge 8.6jan.nijtmans2019-06-251-0/+4
| |\ | |/ |/|
| * Latest libtommath's "develop" branch adapted for Tcl 8.6. And Tcl 8.6 ↵jan.nijtmans2019-06-141-138/+206
| | | | | | | | adapted for changes in libtommath
* | Makef tclTomMath.h work with VC++ 6.0jan.nijtmans2019-06-251-0/+4
|/
* Rename mp_get_bit to s_mp_get_bit, rename mp_tc_div_2d to mp_signed_rsh, ↵jan.nijtmans2019-05-311-24/+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-24/+54
|\
| * DIGIT_BIT -> MP_DIGIT_BIT, since DIGIT_BIT is deprecated in future ↵jan.nijtmans2019-05-141-38/+74
| | | | | | | | | | 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-8/+20
| |
* | Turn KARATSUBA_MUL_CUTOFF (insize libtommath) et al into a #define in stead ↵jan.nijtmans2019-03-281-12/+1
| | | | | | | | of exported int symbols.
* | Document maximum value for right argument of '**' operator. jan.nijtmans2019-03-271-2/+2
| | | | | | | | | | Adapt test-cases to test for exactly one more than this maximum value. Make sure that the maximum is the same for DIGIT_BIT > 28. Change macro's for mp_iseven()/mp_isodd() so they don't depend on value of DIGIT_BIT any more.
* | Update libtommath to latest stable release (1.1.0)jan.nijtmans2019-02-011-233/+229
| |
* | redundant end-of-line spacingjan.nijtmans2017-03-151-6/+6
| |
* | Fix mp_cnt_lsb() signature, so it matches the signature used in Tcl. Add two ↵jan.nijtmans2016-11-181-1/+1
| | | | | | | | missing "static" keywords in tclUnixNotfy.c. Remove some more files in libtommath directory which are not useful for Tcl.
* | [Bug 2991415]: tclport.h #include'd before limits.hjan.nijtmans2011-11-301-1/+0
| |
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-7/+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-7/+0
| | | | | | more harm than good. Purged them.
| * * generic/tclTomMathInt.h (new): Public header tclTomMath.h haddgp2009-10-061-4/+2
| | | | | | | | | | * generic/tclTomMath.h: dependence on private headers, breaking use * generic/tommath.h: by extensions [Bug 1941434].
* | CONSTify various useful internal functionsnijtmans2010-05-031-11/+11
| | | | | | | | | | (TclBignumToDouble, TclCeil, TclFloor), and related tommath functions.
* | Use "tclIO.h" and "tclTomMathDecls.h" everywherenijtmans2010-05-031-30/+32
| |
* | If tclInt.h or tclPort.h is alreadynijtmans2010-04-271-9/+4
| | | | | | | | | | | | | | included, don't include <limits.h> again. Follow-up to [Bug 2991415]: tclport.h #included before limits.h See comments in [Bug 2991415]
* | * generic/tclTomMathInt.h (new): Public header tclTomMath.h haddgp2009-10-061-4/+2
|/ | | | | * generic/tclTomMath.h: dependence on private headers, breaking use * generic/tommath.h: by extensions [Bug 1941434].
* 2007-02-13 Kevin Kenny <kennykb@acm.org>Kevin B Kenny2007-02-141-4/+4
| | | | | | | | * tools/fix_tommath_h.tcl: Further tweaking for the x86-64. The change is to make 'mp_digit' be an 'unsigned int' on that platform; since we're using only 32 bits of it, there's no reason to make it a 64-bit 'unsigned long.' * generic/tclTomMath.h: Regenerated.
* * tools/fix_tommath_h.tcl: Added code to patch out a check forKevin B Kenny2007-02-131-15/+5
| | | | | | | | | __x86_64__ that caused Tommath to use __attributes(TI)__ for the mp_word type. Tetra-int's simply fail on too many gcc-glibc-OS combinations to be ready for shipment today, even if they work for some of us. This change allows reversion of das's change of 2006-08-18 that accomplised the same thing on Darwin. * generic/tclTomMath.h: Regenerated.
* removed BZ_DIV_CUTOFF declaration now that it's gone from libtommathdas2006-12-021-4/+3
|
* declare new BZ_DIV_CUTOFF global as MODULE_SCOPEdas2006-12-011-3/+4
|
* * unix/tcl.m4 (Darwin): add support for --enable-64bit on x86_64, fordas2006-08-181-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | universal builds including x86_64, for 64-bit CoreFoundation on Leopard and for use of -mmacosx-version-min instead of MACOSX_DEPLOYMENT_TARGET. * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59 * generic/tcl.h: add fixes for building on Leopard and support * unix/tclUnixPort.h: for 64-bit CoreFoundation on Leopard. * macosx/tclMacOSXFCmd.c: * unix/tclUnixPort.h: on Darwin x86_64, disable use of vfork as it causes execve to fail intermittently. (rdar://4685553) * generic/tclTomMath.h: on Darwin 64-bit, for now disable use of 128-bit arithmetic through __attribute__ ((mode(TI))), as it leads to link errors due to missing fallbacks. (rdar://4685527) * macosx/Tcl.xcodeproj/project.pbxproj: add x86_64 to universal build, switch native release targets to use DWARF with dSYM, Xcode 3.0 changes. * macosx/README: updates for x86_64 and Xcode 2.3. * macosx/Tcl.xcodeproj/default.pbxuser: add test suite target that runs * macosx/Tcl.xcodeproj/project.pbxproj: the tcl test suite at build time and shows clickable test suite errors in the GUI build window. * tests/macOSXFCmd.test: fix use of deprecated resource fork paths. * unix/tclUnixInit.c (TclpInitLibraryPath): move code that is only needed when TCL_LIBRARY is defined to run only in that case. * generic/tclLink.c (LinkTraceProc): fix 64-bit signed-with-unsigned comparison warning from gcc4 -Wextra.
* Export stubs for libtommath; fix mingw compiler warningsKevin B Kenny2005-12-131-112/+826
|