summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMath.decls
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-09-11 10:38:07 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-09-11 10:38:07 (GMT)
commitb9e8eecd80020e9dc1539f6f99f121472aff3126 (patch)
tree2e262a4602582231d8ffc8cfae0ed63eae88e24f /generic/tclTomMath.decls
parent72cd4c6a0763c30b3f3a4fceb1ed78ad63711cb5 (diff)
downloadtcl-b9e8eecd80020e9dc1539f6f99f121472aff3126.zip
tcl-b9e8eecd80020e9dc1539f6f99f121472aff3126.tar.gz
tcl-b9e8eecd80020e9dc1539f6f99f121472aff3126.tar.bz2
Many 'const' addtions in libtommath where it makes sense. To be submitted back to the libtommath guys.
Diffstat (limited to 'generic/tclTomMath.decls')
-rw-r--r--generic/tclTomMath.decls50
1 files changed, 25 insertions, 25 deletions
diff --git a/generic/tclTomMath.decls b/generic/tclTomMath.decls
index c4299d0..5d1c8e8 100644
--- a/generic/tclTomMath.decls
+++ b/generic/tclTomMath.decls
@@ -30,13 +30,13 @@ declare 1 {
}
declare 2 {
- int TclBN_mp_add(mp_int *a, mp_int *b, mp_int *c)
+ int TclBN_mp_add(const mp_int *a, const mp_int *b, mp_int *c)
}
declare 3 {
int TclBN_mp_add_d(mp_int *a, mp_digit b, mp_int *c)
}
declare 4 {
- int TclBN_mp_and(mp_int *a, mp_int *b, mp_int *c)
+ int TclBN_mp_and(const mp_int *a, const mp_int *b, mp_int *c)
}
declare 5 {
void TclBN_mp_clamp(mp_int *a)
@@ -63,10 +63,10 @@ declare 12 {
int TclBN_mp_count_bits(const mp_int *a)
}
declare 13 {
- int TclBN_mp_div(mp_int *a, mp_int *b, mp_int *q, mp_int *r)
+ int TclBN_mp_div(const mp_int *a, const mp_int *b, mp_int *q, mp_int *r)
}
declare 14 {
- int TclBN_mp_div_d(mp_int *a, mp_digit b, mp_int *q, mp_digit *r)
+ int TclBN_mp_div_d(const mp_int *a, mp_digit b, mp_int *q, mp_digit *r)
}
declare 15 {
int TclBN_mp_div_2(const mp_int *a, mp_int *q)
@@ -75,13 +75,13 @@ declare 16 {
int TclBN_mp_div_2d(const mp_int *a, int b, mp_int *q, mp_int *r)
}
declare 17 {
- int TclBN_mp_div_3(mp_int *a, mp_int *q, mp_digit *r)
+ int TclBN_mp_div_3(const mp_int *a, mp_int *q, mp_digit *r)
}
declare 18 {
void TclBN_mp_exch(mp_int *a, mp_int *b)
}
declare 19 {
- int TclBN_mp_expt_d(mp_int *a, mp_digit b, mp_int *c)
+ int TclBN_mp_expt_d(const mp_int *a, mp_digit b, mp_int *c)
}
declare 20 {
int TclBN_mp_grow(mp_int *a, int size)
@@ -105,16 +105,16 @@ declare 26 {
int TclBN_mp_lshd(mp_int *a, int shift)
}
declare 27 {
- int TclBN_mp_mod(mp_int *a, mp_int *b, mp_int *r)
+ int TclBN_mp_mod(const mp_int *a, const mp_int *b, mp_int *r)
}
declare 28 {
int TclBN_mp_mod_2d(const mp_int *a, int b, mp_int *r)
}
declare 29 {
- int TclBN_mp_mul(mp_int *a, mp_int *b, mp_int *p)
+ int TclBN_mp_mul(const mp_int *a, const mp_int *b, mp_int *p)
}
declare 30 {
- int TclBN_mp_mul_d(mp_int *a, mp_digit b, mp_int *p)
+ int TclBN_mp_mul_d(const mp_int *a, mp_digit b, mp_int *p)
}
declare 31 {
int TclBN_mp_mul_2(const mp_int *a, mp_int *p)
@@ -126,7 +126,7 @@ declare 33 {
int TclBN_mp_neg(const mp_int *a, mp_int *b)
}
declare 34 {
- int TclBN_mp_or(mp_int *a, mp_int *b, mp_int *c)
+ int TclBN_mp_or(const mp_int *a, const mp_int *b, mp_int *c)
}
declare 35 {
int TclBN_mp_radix_size(const mp_int *a, int radix, int *size)
@@ -144,13 +144,13 @@ declare 39 {
void TclBN_mp_set(mp_int *a, mp_digit b)
}
declare 40 {
- int TclBN_mp_sqr(mp_int *a, mp_int *b)
+ int TclBN_mp_sqr(const mp_int *a, mp_int *b)
}
declare 41 {
- int TclBN_mp_sqrt(mp_int *a, mp_int *b)
+ int TclBN_mp_sqrt(const mp_int *a, mp_int *b)
}
declare 42 {
- int TclBN_mp_sub(mp_int *a, mp_int *b, mp_int *c)
+ int TclBN_mp_sub(const mp_int *a, const mp_int *b, mp_int *c)
}
declare 43 {
int TclBN_mp_sub_d(mp_int *a, mp_digit b, mp_int *c)
@@ -169,7 +169,7 @@ declare 47 {
int TclBN_mp_unsigned_bin_size(mp_int *a)
}
declare 48 {
- int TclBN_mp_xor(mp_int *a, mp_int *b, mp_int *c)
+ int TclBN_mp_xor(const mp_int *a, const mp_int *b, mp_int *c)
}
declare 49 {
void TclBN_mp_zero(mp_int *a)
@@ -182,34 +182,34 @@ declare 50 {
void TclBN_reverse(unsigned char *s, int len)
}
declare 51 {
- int TclBN_fast_s_mp_mul_digs(mp_int *a, mp_int *b, mp_int *c, int digs)
+ int TclBN_fast_s_mp_mul_digs(const mp_int *a, const mp_int *b, mp_int *c, int digs)
}
declare 52 {
- int TclBN_fast_s_mp_sqr(mp_int *a, mp_int *b)
+ int TclBN_fast_s_mp_sqr(const mp_int *a, mp_int *b)
}
declare 53 {
- int TclBN_mp_karatsuba_mul(mp_int *a, mp_int *b, mp_int *c)
+ int TclBN_mp_karatsuba_mul(const mp_int *a, const mp_int *b, mp_int *c)
}
declare 54 {
- int TclBN_mp_karatsuba_sqr(mp_int *a, mp_int *b)
+ int TclBN_mp_karatsuba_sqr(const mp_int *a, mp_int *b)
}
declare 55 {
- int TclBN_mp_toom_mul(mp_int *a, mp_int *b, mp_int *c)
+ int TclBN_mp_toom_mul(const mp_int *a, const mp_int *b, mp_int *c)
}
declare 56 {
- int TclBN_mp_toom_sqr(mp_int *a, mp_int *b)
+ int TclBN_mp_toom_sqr(const mp_int *a, mp_int *b)
}
declare 57 {
- int TclBN_s_mp_add(mp_int *a, mp_int *b, mp_int *c)
+ int TclBN_s_mp_add(const mp_int *a, const mp_int *b, mp_int *c)
}
declare 58 {
- int TclBN_s_mp_mul_digs(mp_int *a, mp_int *b, mp_int *c, int digs)
+ int TclBN_s_mp_mul_digs(const mp_int *a, const mp_int *b, mp_int *c, int digs)
}
declare 59 {
- int TclBN_s_mp_sqr(mp_int *a, mp_int *b)
+ int TclBN_s_mp_sqr(const mp_int *a, mp_int *b)
}
declare 60 {
- int TclBN_s_mp_sub(mp_int *a, mp_int *b, mp_int *c)
+ int TclBN_s_mp_sub(const mp_int *a, const mp_int *b, mp_int *c)
}
declare 61 {
int TclBN_mp_init_set_int(mp_int *a, unsigned long i)
@@ -235,7 +235,7 @@ declare 66 {
# Added in libtommath 1.0
declare 67 {
- int TclBN_mp_expt_d_ex(mp_int *a, mp_digit b, mp_int *c, int fast)
+ int 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 {