summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMath.decls
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2015-10-28 21:15:21 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2015-10-28 21:15:21 (GMT)
commita2efc41118bae86e8df3f7dbb0c09aa1456399d7 (patch)
tree17060872d18b632eaaef229b4626c5e3d1e6afcc /generic/tclTomMath.decls
parent91ec2f63549a5276a79e4b54c485fc1dcd78bcd5 (diff)
downloadtcl-a2efc41118bae86e8df3f7dbb0c09aa1456399d7.zip
tcl-a2efc41118bae86e8df3f7dbb0c09aa1456399d7.tar.gz
tcl-a2efc41118bae86e8df3f7dbb0c09aa1456399d7.tar.bz2
Expose some of the TclBN operations through the internal API, so clients of the bignum code don't need to use tclTomMath.h directly.
Diffstat (limited to 'generic/tclTomMath.decls')
-rw-r--r--generic/tclTomMath.decls23
1 files changed, 19 insertions, 4 deletions
diff --git a/generic/tclTomMath.decls b/generic/tclTomMath.decls
index ea3abb1..8d9e05f 100644
--- a/generic/tclTomMath.decls
+++ b/generic/tclTomMath.decls
@@ -1,9 +1,8 @@
# tclTomMath.decls --
#
-# This file contains the declarations for the functions in
-# 'libtommath' that are contained within the Tcl library.
-# This file is used to generate the 'tclTomMathDecls.h' and
-# 'tclTomMathStub.c' files.
+# This file contains the declarations for the functions in 'libtommath'
+# that are contained within the Tcl library. This file is used to
+# generate the 'tclTomMathDecls.h' and 'tclTomMathStub.c' files.
#
# If you edit this file, advance the revision number (and the epoch
# if the new stubs are not backward compatible) in tclTomMathDecls.h
@@ -221,3 +220,19 @@ declare 62 {
declare 63 {
int TclBN_mp_cnt_lsb(const mp_int *a)
}
+
+# Formerly internal API to allow initialisation of bignums without knowing the
+# typedefs of how a bignum works internally.
+declare 64 {
+ void TclBNInitBignumFromLong(mp_int *bignum, long initVal)
+}
+declare 65 {
+ void TclBNInitBignumFromWideInt(mp_int *bignum, Tcl_WideInt initVal)
+}
+declare 66 {
+ void TclBNInitBignumFromWideUInt(mp_int *bignum, Tcl_WideUInt initVal)
+}
+
+# Local Variables:
+# mode: tcl
+# End: