diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-09 19:39:23 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-09 19:39:23 (GMT) |
commit | ac7ef03d8e108d7c755c1f560808429d0f4a0ce2 (patch) | |
tree | dab615d190e9cdcbefb5d6930c00b1c749d37f83 /generic/tclTomMath.decls | |
parent | 89dd0dcb93da6f2bedd50f7cf5f78502281ddf77 (diff) | |
parent | 3160edd84157a0015c5a24607b70561077dbb55a (diff) | |
download | tcl-ac7ef03d8e108d7c755c1f560808429d0f4a0ce2.zip tcl-ac7ef03d8e108d7c755c1f560808429d0f4a0ce2.tar.gz tcl-ac7ef03d8e108d7c755c1f560808429d0f4a0ce2.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.decls | 15 |
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 { |