summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMath.decls
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-08 21:56:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-08 21:56:52 (GMT)
commit3160edd84157a0015c5a24607b70561077dbb55a (patch)
tree075dded7057c87ab6c6114ff81e8b15da99c2e29 /generic/tclTomMath.decls
parent89dd0dcb93da6f2bedd50f7cf5f78502281ddf77 (diff)
downloadtcl-3160edd84157a0015c5a24607b70561077dbb55a.zip
tcl-3160edd84157a0015c5a24607b70561077dbb55a.tar.gz
tcl-3160edd84157a0015c5a24607b70561077dbb55a.tar.bz2
Now that libtommath has mp_init_l/mp_init_ll/mp_init_ull, use those instead of the legacy TclBNInitBignumFromLong/TclBNInitBignumFromWideInt/TclBNInitBignumFromWideUInt
Diffstat (limited to 'generic/tclTomMath.decls')
-rw-r--r--generic/tclTomMath.decls15
1 files changed, 9 insertions, 6 deletions
diff --git a/generic/tclTomMath.decls b/generic/tclTomMath.decls
index b83059e..964b5a7 100644
--- a/generic/tclTomMath.decls
+++ b/generic/tclTomMath.decls
@@ -223,14 +223,14 @@ declare 63 {
# Formerly internal API to allow initialisation of bignums without knowing the
# typedefs of how a bignum works internally.
-declare 64 {deprecated {Use mp_init() + mp_set_l()}} {
- void TclBNInitBignumFromLong(mp_int *bignum, long initVal)
+declare 64 {
+ int TclBNInitBignumFromLong(mp_int *bignum, long initVal)
}
-declare 65 {deprecated {Use mp_init() + mp_set_ll()}} {
- void TclBNInitBignumFromWideInt(mp_int *bignum, Tcl_WideInt initVal)
+declare 65 {
+ int TclBNInitBignumFromWideInt(mp_int *bignum, Tcl_WideInt initVal)
}
-declare 66 {deprecated {Use mp_init() + mp_set_ull()}} {
- void TclBNInitBignumFromWideUInt(mp_int *bignum, Tcl_WideUInt initVal)
+declare 66 {
+ int TclBNInitBignumFromWideUInt(mp_int *bignum, Tcl_WideUInt initVal)
}
# Added in libtommath 1.0
@@ -250,6 +250,9 @@ declare 70 {
declare 71 {
unsigned long MP_WUR TclBN_mp_get_mag_ul(const mp_int *a)
}
+declare 72 {
+ void TclBN_mp_set_l(mp_int *a, long i)
+}
# Added in libtommath 1.1.0
declare 73 {