diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2015-10-28 21:15:21 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2015-10-28 21:15:21 (GMT) |
commit | d2b7a7797a402493c3e257f8c83b27111c0770c0 (patch) | |
tree | 17060872d18b632eaaef229b4626c5e3d1e6afcc /generic/tclTomMath.decls | |
parent | acc449dd107dae0b0382540ae810a3daa6e104c2 (diff) | |
download | tcl-d2b7a7797a402493c3e257f8c83b27111c0770c0.zip tcl-d2b7a7797a402493c3e257f8c83b27111c0770c0.tar.gz tcl-d2b7a7797a402493c3e257f8c83b27111c0770c0.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.decls | 23 |
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: |