summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMath.decls
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-08 15:32:33 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-08 15:32:33 (GMT)
commitc1f8c0290006c19eba948b7aaec6ae6ae0e0099c (patch)
tree51d02eca13a20f54a2a2e9a7d93db6da5f6fde84 /generic/tclTomMath.decls
parent65946d3f86dd49b65b128b71d4b2c4b4a020a277 (diff)
downloadtcl-c1f8c0290006c19eba948b7aaec6ae6ae0e0099c.zip
tcl-c1f8c0290006c19eba948b7aaec6ae6ae0e0099c.tar.gz
tcl-c1f8c0290006c19eba948b7aaec6ae6ae0e0099c.tar.bz2
Add support for 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.
Diffstat (limited to 'generic/tclTomMath.decls')
-rw-r--r--generic/tclTomMath.decls11
1 files changed, 7 insertions, 4 deletions
diff --git a/generic/tclTomMath.decls b/generic/tclTomMath.decls
index 8325922..c5645a4 100644
--- a/generic/tclTomMath.decls
+++ b/generic/tclTomMath.decls
@@ -224,20 +224,23 @@ declare 63 {
# 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)
+ int TclBNInitBignumFromLong(mp_int *bignum, long initVal)
}
declare 65 {
- void TclBNInitBignumFromWideInt(mp_int *bignum, Tcl_WideInt initVal)
+ int TclBNInitBignumFromWideInt(mp_int *bignum, Tcl_WideInt initVal)
}
declare 66 {
- void TclBNInitBignumFromWideUInt(mp_int *bignum, Tcl_WideUInt initVal)
+ int TclBNInitBignumFromWideUInt(mp_int *bignum, Tcl_WideUInt initVal)
}
# Added in libtommath 1.0
declare 67 {
mp_err TclBN_mp_expt_d_ex(const mp_int *a, mp_digit b, mp_int *c, int fast)
}
-
+# Added in libtommath 1.0.1
+declare 68 {
+ void TclBN_mp_set_ull(mp_int *a, Tcl_WideUInt i)
+}
# Added in libtommath 1.1.0
declare 73 {
mp_err TclBN_mp_tc_and(const mp_int *a, const mp_int *b, mp_int *c)