summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMathInterface.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-11 14:26:50 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-11 14:26:50 (GMT)
commite512564f360551e1821bc646ce75314246b9a0ee (patch)
tree855d2542e38d1f5c55cb823745749f8ec7f3148c /generic/tclTomMathInterface.c
parent99cce0ea110b9e0d8eec550f8bcc125b75940031 (diff)
parentac7ef03d8e108d7c755c1f560808429d0f4a0ce2 (diff)
downloadtcl-e512564f360551e1821bc646ce75314246b9a0ee.zip
tcl-e512564f360551e1821bc646ce75314246b9a0ee.tar.gz
tcl-e512564f360551e1821bc646ce75314246b9a0ee.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tclTomMathInterface.c')
-rw-r--r--generic/tclTomMathInterface.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/generic/tclTomMathInterface.c b/generic/tclTomMathInterface.c
index 2d29487..60ed123 100644
--- a/generic/tclTomMathInterface.c
+++ b/generic/tclTomMathInterface.c
@@ -91,66 +91,6 @@ TclBN_revision(void)
}
/*
- *----------------------------------------------------------------------
- *
- * TclBNInitBignumFromWideInt --
- *
- * Allocate and initialize a 'bignum' from a Tcl_WideInt
- *
- * Results:
- * None.
- *
- * Side effects:
- * The 'bignum' is constructed.
- *
- *----------------------------------------------------------------------
- */
-
-void
-TclBNInitBignumFromWideInt(
- mp_int *a, /* Bignum to initialize */
- Tcl_WideInt v) /* Initial value */
-{
- if (mp_init(a) != MP_OKAY) {
- wipanic:
- Tcl_Panic("initialization failure in TclBNInitBignumFromWideInt");
- }
- if (v < 0) {
- mp_set_u64(a, (uint64_t)(-v));
- if (mp_neg(a, a) != MP_OKAY) goto wipanic;
- } else {
- mp_set_u64(a, (uint64_t)v);
- }
-}
-
-/*
- *----------------------------------------------------------------------
- *
- * TclBNInitBignumFromWideUInt --
- *
- * Allocate and initialize a 'bignum' from a Tcl_WideUInt
- *
- * Results:
- * None.
- *
- * Side effects:
- * The 'bignum' is constructed.
- *
- *----------------------------------------------------------------------
- */
-
-void
-TclBNInitBignumFromWideUInt(
- mp_int *a, /* Bignum to initialize */
- Tcl_WideUInt v) /* Initial value */
-{
- if (mp_init(a) != MP_OKAY) {
- Tcl_Panic("initialization failure in TclBNInitBignumFromWideUInt");
- }
- mp_set_u64(a, (uint64_t)v);
-}
-
-/*
* Local Variables:
* mode: c
* c-basic-offset: 4