| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
used by Tcl, but can be used by extensions (backported from 8.7)
|
|
|
|
| |
through TIP #538
|
|
|
|
| |
8.6.9, isn't used anywhere in Tcl, and is going to be deprecated in libtommath.
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
| |
Use MP_DIGIT_BIT in stead of (deprecated) DIGIT_BIT everywhere.
(just code cleanup, nothing funcional)
|
| |
|
|
|
| |
Fix mp_init_set_int stub, handling the situation that mp_init() fails (however unlikely)
|
|
|
|
| |
deprecated libtommath functions.
|
| |
|
| |
|
|\ |
|
|\ \
| |/ |
|
|/
|
|
| |
adapted for changes in libtommath
|
|
|
|
| |
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.
|
|\ |
|
| |
| |
| |
| |
| | |
libtommath versions. So, better stop using it at all.
Also add some other defines/typdefs for future libtommath compatibility.
|
| | |
|
|\ \
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | | |
mp_tc_div_2d, which simplifies code.
|
| | |
| | |
| | |
| | | |
now that libtommath provides new functions mp_tc_and, mp_tc_or and mp_tc_xor
|
| | |
| | |
| | |
| | | |
of exported int symbols.
|
|/ /
| |
| |
| | |
libtommath: In the upcoming new version those will become real functions, causing possible binary incompatibility. This change makes Tcl independant from libtommath's changes.
|
| | |
|
| | |
|
|\ \
| |/
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
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.
|
| | |
|
|\ \
| |/
| |
| | |
remove some unused cygwin-related code
some minor gcc warnings
|
| |
| |
| |
| |
| | |
move up #undef, for macro which is conflicting with later stuff.
remove some unused cygwin-related code
some minor gcc warnings
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/
| | |
cause more harm than good. Purged them (except in zlib files).
|
| |
| |
| | |
more harm than good. Purged them.
|
| |
| |
| |
| |
| |
| | |
const/void when appropriate. This allows to
use const/void in the *.decls file always,
genStubs will do the right thing.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |
| |
| |
| |
| |
| |
| | |
changes from HEAD, so diffing
between 8.5.x and 8.6 shows the
real structural differences again.
(any signature change not backported!)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |
| |
| |
| | |
remove unneeded ifdeffery and put C++ guard around stubs pointer definition.
|
| |
| |
| |
| |
| | |
(TclBignumToDouble, TclCeil, TclFloor), and
related tommath functions.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
broken since 8.4 and no-one complained about it.
|
| |
| |
| |
| | |
and CONST -> const (.c files and internal .h files)
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
* generic/tclIntDecls.h:
* generic/tclIntPlatDecls.h:
* generic/tclPlatDecls.h:
* generic/tclTomMathDecls.h:
|
| |
| |
| |
| |
| |
| |
| |
| | |
* generic/tclIntDecls.h:
* generic/tclIntPlatDecls.h:
* generic/tclPlatDecls.h:
* generic/tclStubInit.c:
* generic/tclTomMathDecls.h:
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
_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:
|