summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMathDecls.h
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-01-29 16:17:20 (GMT)
committernijtmans <nijtmans>2010-01-29 16:17:20 (GMT)
commit20dedb76e13ace251494944dae1a8e60d2f6d70a (patch)
tree26f8bbc7ca7c8759763e62169bfefcb1310134a0 /generic/tclTomMathDecls.h
parent2a36240c713f132ba78917496b237d879d5e2d58 (diff)
downloadtcl-20dedb76e13ace251494944dae1a8e60d2f6d70a.zip
tcl-20dedb76e13ace251494944dae1a8e60d2f6d70a.tar.gz
tcl-20dedb76e13ace251494944dae1a8e60d2f6d70a.tar.bz2
- genStubs.tcl: No longer generate a space after "*" and
immediately after a function name, so the format of function definitions in tcl*Decls.h matches all other tcl*.h header files. - Change Tcl_ArgvFuncProc, Tcl_ArgvGenFuncProc and GetFrameInfoValueProc to be function definitions, not pointers, for consistency with all other Tcl function definitions.
Diffstat (limited to 'generic/tclTomMathDecls.h')
-rw-r--r--generic/tclTomMathDecls.h249
1 files changed, 124 insertions, 125 deletions
diff --git a/generic/tclTomMathDecls.h b/generic/tclTomMathDecls.h
index 68521ca..76f6b20 100644
--- a/generic/tclTomMathDecls.h
+++ b/generic/tclTomMathDecls.h
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclTomMathDecls.h,v 1.9 2008/10/22 20:23:59 nijtmans Exp $
+ * RCS: @(#) $Id: tclTomMathDecls.h,v 1.10 2010/01/29 16:17:20 nijtmans Exp $
*/
#ifndef _TCLTOMMATHDECLS
@@ -140,317 +140,316 @@
#ifndef TclBN_epoch_TCL_DECLARED
#define TclBN_epoch_TCL_DECLARED
/* 0 */
-EXTERN int TclBN_epoch (void);
+EXTERN int TclBN_epoch(void);
#endif
#ifndef TclBN_revision_TCL_DECLARED
#define TclBN_revision_TCL_DECLARED
/* 1 */
-EXTERN int TclBN_revision (void);
+EXTERN int TclBN_revision(void);
#endif
#ifndef TclBN_mp_add_TCL_DECLARED
#define TclBN_mp_add_TCL_DECLARED
/* 2 */
-EXTERN int TclBN_mp_add (mp_int* a, mp_int* b, mp_int* c);
+EXTERN int TclBN_mp_add(mp_int *a, mp_int *b, mp_int *c);
#endif
#ifndef TclBN_mp_add_d_TCL_DECLARED
#define TclBN_mp_add_d_TCL_DECLARED
/* 3 */
-EXTERN int TclBN_mp_add_d (mp_int* a, mp_digit b, mp_int* c);
+EXTERN int TclBN_mp_add_d(mp_int *a, mp_digit b, mp_int *c);
#endif
#ifndef TclBN_mp_and_TCL_DECLARED
#define TclBN_mp_and_TCL_DECLARED
/* 4 */
-EXTERN int TclBN_mp_and (mp_int* a, mp_int* b, mp_int* c);
+EXTERN int TclBN_mp_and(mp_int *a, mp_int *b, mp_int *c);
#endif
#ifndef TclBN_mp_clamp_TCL_DECLARED
#define TclBN_mp_clamp_TCL_DECLARED
/* 5 */
-EXTERN void TclBN_mp_clamp (mp_int* a);
+EXTERN void TclBN_mp_clamp(mp_int *a);
#endif
#ifndef TclBN_mp_clear_TCL_DECLARED
#define TclBN_mp_clear_TCL_DECLARED
/* 6 */
-EXTERN void TclBN_mp_clear (mp_int* a);
+EXTERN void TclBN_mp_clear(mp_int *a);
#endif
#ifndef TclBN_mp_clear_multi_TCL_DECLARED
#define TclBN_mp_clear_multi_TCL_DECLARED
/* 7 */
-EXTERN void TclBN_mp_clear_multi (mp_int* a, ...);
+EXTERN void TclBN_mp_clear_multi(mp_int *a, ...);
#endif
#ifndef TclBN_mp_cmp_TCL_DECLARED
#define TclBN_mp_cmp_TCL_DECLARED
/* 8 */
-EXTERN int TclBN_mp_cmp (mp_int* a, mp_int* b);
+EXTERN int TclBN_mp_cmp(mp_int *a, mp_int *b);
#endif
#ifndef TclBN_mp_cmp_d_TCL_DECLARED
#define TclBN_mp_cmp_d_TCL_DECLARED
/* 9 */
-EXTERN int TclBN_mp_cmp_d (mp_int* a, mp_digit b);
+EXTERN int TclBN_mp_cmp_d(mp_int *a, mp_digit b);
#endif
#ifndef TclBN_mp_cmp_mag_TCL_DECLARED
#define TclBN_mp_cmp_mag_TCL_DECLARED
/* 10 */
-EXTERN int TclBN_mp_cmp_mag (mp_int* a, mp_int* b);
+EXTERN int TclBN_mp_cmp_mag(mp_int *a, mp_int *b);
#endif
#ifndef TclBN_mp_copy_TCL_DECLARED
#define TclBN_mp_copy_TCL_DECLARED
/* 11 */
-EXTERN int TclBN_mp_copy (mp_int* a, mp_int* b);
+EXTERN int TclBN_mp_copy(mp_int *a, mp_int *b);
#endif
#ifndef TclBN_mp_count_bits_TCL_DECLARED
#define TclBN_mp_count_bits_TCL_DECLARED
/* 12 */
-EXTERN int TclBN_mp_count_bits (mp_int* a);
+EXTERN int TclBN_mp_count_bits(mp_int *a);
#endif
#ifndef TclBN_mp_div_TCL_DECLARED
#define TclBN_mp_div_TCL_DECLARED
/* 13 */
-EXTERN int TclBN_mp_div (mp_int* a, mp_int* b, mp_int* q,
- mp_int* r);
+EXTERN int TclBN_mp_div(mp_int *a, mp_int *b, mp_int *q,
+ mp_int *r);
#endif
#ifndef TclBN_mp_div_d_TCL_DECLARED
#define TclBN_mp_div_d_TCL_DECLARED
/* 14 */
-EXTERN int TclBN_mp_div_d (mp_int* a, mp_digit b, mp_int* q,
- mp_digit* r);
+EXTERN int TclBN_mp_div_d(mp_int *a, mp_digit b, mp_int *q,
+ mp_digit*r);
#endif
#ifndef TclBN_mp_div_2_TCL_DECLARED
#define TclBN_mp_div_2_TCL_DECLARED
/* 15 */
-EXTERN int TclBN_mp_div_2 (mp_int* a, mp_int* q);
+EXTERN int TclBN_mp_div_2(mp_int *a, mp_int *q);
#endif
#ifndef TclBN_mp_div_2d_TCL_DECLARED
#define TclBN_mp_div_2d_TCL_DECLARED
/* 16 */
-EXTERN int TclBN_mp_div_2d (mp_int* a, int b, mp_int* q,
- mp_int* r);
+EXTERN int TclBN_mp_div_2d(mp_int *a, int b, mp_int *q,
+ mp_int *r);
#endif
#ifndef TclBN_mp_div_3_TCL_DECLARED
#define TclBN_mp_div_3_TCL_DECLARED
/* 17 */
-EXTERN int TclBN_mp_div_3 (mp_int* a, mp_int* q, mp_digit* r);
+EXTERN int TclBN_mp_div_3(mp_int *a, mp_int *q, mp_digit*r);
#endif
#ifndef TclBN_mp_exch_TCL_DECLARED
#define TclBN_mp_exch_TCL_DECLARED
/* 18 */
-EXTERN void TclBN_mp_exch (mp_int* a, mp_int* b);
+EXTERN void TclBN_mp_exch(mp_int *a, mp_int *b);
#endif
#ifndef TclBN_mp_expt_d_TCL_DECLARED
#define TclBN_mp_expt_d_TCL_DECLARED
/* 19 */
-EXTERN int TclBN_mp_expt_d (mp_int* a, mp_digit b, mp_int* c);
+EXTERN int TclBN_mp_expt_d(mp_int *a, mp_digit b, mp_int *c);
#endif
#ifndef TclBN_mp_grow_TCL_DECLARED
#define TclBN_mp_grow_TCL_DECLARED
/* 20 */
-EXTERN int TclBN_mp_grow (mp_int* a, int size);
+EXTERN int TclBN_mp_grow(mp_int *a, int size);
#endif
#ifndef TclBN_mp_init_TCL_DECLARED
#define TclBN_mp_init_TCL_DECLARED
/* 21 */
-EXTERN int TclBN_mp_init (mp_int* a);
+EXTERN int TclBN_mp_init(mp_int *a);
#endif
#ifndef TclBN_mp_init_copy_TCL_DECLARED
#define TclBN_mp_init_copy_TCL_DECLARED
/* 22 */
-EXTERN int TclBN_mp_init_copy (mp_int * a, mp_int* b);
+EXTERN int TclBN_mp_init_copy(mp_int *a, mp_int *b);
#endif
#ifndef TclBN_mp_init_multi_TCL_DECLARED
#define TclBN_mp_init_multi_TCL_DECLARED
/* 23 */
-EXTERN int TclBN_mp_init_multi (mp_int* a, ...);
+EXTERN int TclBN_mp_init_multi(mp_int *a, ...);
#endif
#ifndef TclBN_mp_init_set_TCL_DECLARED
#define TclBN_mp_init_set_TCL_DECLARED
/* 24 */
-EXTERN int TclBN_mp_init_set (mp_int* a, mp_digit b);
+EXTERN int TclBN_mp_init_set(mp_int *a, mp_digit b);
#endif
#ifndef TclBN_mp_init_size_TCL_DECLARED
#define TclBN_mp_init_size_TCL_DECLARED
/* 25 */
-EXTERN int TclBN_mp_init_size (mp_int* a, int size);
+EXTERN int TclBN_mp_init_size(mp_int *a, int size);
#endif
#ifndef TclBN_mp_lshd_TCL_DECLARED
#define TclBN_mp_lshd_TCL_DECLARED
/* 26 */
-EXTERN int TclBN_mp_lshd (mp_int* a, int shift);
+EXTERN int TclBN_mp_lshd(mp_int *a, int shift);
#endif
#ifndef TclBN_mp_mod_TCL_DECLARED
#define TclBN_mp_mod_TCL_DECLARED
/* 27 */
-EXTERN int TclBN_mp_mod (mp_int* a, mp_int* b, mp_int* r);
+EXTERN int TclBN_mp_mod(mp_int *a, mp_int *b, mp_int *r);
#endif
#ifndef TclBN_mp_mod_2d_TCL_DECLARED
#define TclBN_mp_mod_2d_TCL_DECLARED
/* 28 */
-EXTERN int TclBN_mp_mod_2d (mp_int* a, int b, mp_int* r);
+EXTERN int TclBN_mp_mod_2d(mp_int *a, int b, mp_int *r);
#endif
#ifndef TclBN_mp_mul_TCL_DECLARED
#define TclBN_mp_mul_TCL_DECLARED
/* 29 */
-EXTERN int TclBN_mp_mul (mp_int* a, mp_int* b, mp_int* p);
+EXTERN int TclBN_mp_mul(mp_int *a, mp_int *b, mp_int *p);
#endif
#ifndef TclBN_mp_mul_d_TCL_DECLARED
#define TclBN_mp_mul_d_TCL_DECLARED
/* 30 */
-EXTERN int TclBN_mp_mul_d (mp_int* a, mp_digit b, mp_int* p);
+EXTERN int TclBN_mp_mul_d(mp_int *a, mp_digit b, mp_int *p);
#endif
#ifndef TclBN_mp_mul_2_TCL_DECLARED
#define TclBN_mp_mul_2_TCL_DECLARED
/* 31 */
-EXTERN int TclBN_mp_mul_2 (mp_int* a, mp_int* p);
+EXTERN int TclBN_mp_mul_2(mp_int *a, mp_int *p);
#endif
#ifndef TclBN_mp_mul_2d_TCL_DECLARED
#define TclBN_mp_mul_2d_TCL_DECLARED
/* 32 */
-EXTERN int TclBN_mp_mul_2d (mp_int* a, int d, mp_int* p);
+EXTERN int TclBN_mp_mul_2d(mp_int *a, int d, mp_int *p);
#endif
#ifndef TclBN_mp_neg_TCL_DECLARED
#define TclBN_mp_neg_TCL_DECLARED
/* 33 */
-EXTERN int TclBN_mp_neg (mp_int* a, mp_int* b);
+EXTERN int TclBN_mp_neg(mp_int *a, mp_int *b);
#endif
#ifndef TclBN_mp_or_TCL_DECLARED
#define TclBN_mp_or_TCL_DECLARED
/* 34 */
-EXTERN int TclBN_mp_or (mp_int* a, mp_int* b, mp_int* c);
+EXTERN int TclBN_mp_or(mp_int *a, mp_int *b, mp_int *c);
#endif
#ifndef TclBN_mp_radix_size_TCL_DECLARED
#define TclBN_mp_radix_size_TCL_DECLARED
/* 35 */
-EXTERN int TclBN_mp_radix_size (mp_int* a, int radix, int* size);
+EXTERN int TclBN_mp_radix_size(mp_int *a, int radix, int*size);
#endif
#ifndef TclBN_mp_read_radix_TCL_DECLARED
#define TclBN_mp_read_radix_TCL_DECLARED
/* 36 */
-EXTERN int TclBN_mp_read_radix (mp_int* a, const char* str,
+EXTERN int TclBN_mp_read_radix(mp_int *a, const char*str,
int radix);
#endif
#ifndef TclBN_mp_rshd_TCL_DECLARED
#define TclBN_mp_rshd_TCL_DECLARED
/* 37 */
-EXTERN void TclBN_mp_rshd (mp_int * a, int shift);
+EXTERN void TclBN_mp_rshd(mp_int *a, int shift);
#endif
#ifndef TclBN_mp_shrink_TCL_DECLARED
#define TclBN_mp_shrink_TCL_DECLARED
/* 38 */
-EXTERN int TclBN_mp_shrink (mp_int* a);
+EXTERN int TclBN_mp_shrink(mp_int *a);
#endif
#ifndef TclBN_mp_set_TCL_DECLARED
#define TclBN_mp_set_TCL_DECLARED
/* 39 */
-EXTERN void TclBN_mp_set (mp_int* a, mp_digit b);
+EXTERN void TclBN_mp_set(mp_int *a, mp_digit b);
#endif
#ifndef TclBN_mp_sqr_TCL_DECLARED
#define TclBN_mp_sqr_TCL_DECLARED
/* 40 */
-EXTERN int TclBN_mp_sqr (mp_int* a, mp_int* b);
+EXTERN int TclBN_mp_sqr(mp_int *a, mp_int *b);
#endif
#ifndef TclBN_mp_sqrt_TCL_DECLARED
#define TclBN_mp_sqrt_TCL_DECLARED
/* 41 */
-EXTERN int TclBN_mp_sqrt (mp_int* a, mp_int* b);
+EXTERN int TclBN_mp_sqrt(mp_int *a, mp_int *b);
#endif
#ifndef TclBN_mp_sub_TCL_DECLARED
#define TclBN_mp_sub_TCL_DECLARED
/* 42 */
-EXTERN int TclBN_mp_sub (mp_int* a, mp_int* b, mp_int* c);
+EXTERN int TclBN_mp_sub(mp_int *a, mp_int *b, mp_int *c);
#endif
#ifndef TclBN_mp_sub_d_TCL_DECLARED
#define TclBN_mp_sub_d_TCL_DECLARED
/* 43 */
-EXTERN int TclBN_mp_sub_d (mp_int* a, mp_digit b, mp_int* c);
+EXTERN int TclBN_mp_sub_d(mp_int *a, mp_digit b, mp_int *c);
#endif
#ifndef TclBN_mp_to_unsigned_bin_TCL_DECLARED
#define TclBN_mp_to_unsigned_bin_TCL_DECLARED
/* 44 */
-EXTERN int TclBN_mp_to_unsigned_bin (mp_int* a,
- unsigned char* b);
+EXTERN int TclBN_mp_to_unsigned_bin(mp_int *a, unsigned char*b);
#endif
#ifndef TclBN_mp_to_unsigned_bin_n_TCL_DECLARED
#define TclBN_mp_to_unsigned_bin_n_TCL_DECLARED
/* 45 */
-EXTERN int TclBN_mp_to_unsigned_bin_n (mp_int* a,
- unsigned char* b, unsigned long* outlen);
+EXTERN int TclBN_mp_to_unsigned_bin_n(mp_int *a,
+ unsigned char*b, unsigned long*outlen);
#endif
#ifndef TclBN_mp_toradix_n_TCL_DECLARED
#define TclBN_mp_toradix_n_TCL_DECLARED
/* 46 */
-EXTERN int TclBN_mp_toradix_n (mp_int* a, char* str, int radix,
+EXTERN int TclBN_mp_toradix_n(mp_int *a, char*str, int radix,
int maxlen);
#endif
#ifndef TclBN_mp_unsigned_bin_size_TCL_DECLARED
#define TclBN_mp_unsigned_bin_size_TCL_DECLARED
/* 47 */
-EXTERN int TclBN_mp_unsigned_bin_size (mp_int* a);
+EXTERN int TclBN_mp_unsigned_bin_size(mp_int *a);
#endif
#ifndef TclBN_mp_xor_TCL_DECLARED
#define TclBN_mp_xor_TCL_DECLARED
/* 48 */
-EXTERN int TclBN_mp_xor (mp_int* a, mp_int* b, mp_int* c);
+EXTERN int TclBN_mp_xor(mp_int *a, mp_int *b, mp_int *c);
#endif
#ifndef TclBN_mp_zero_TCL_DECLARED
#define TclBN_mp_zero_TCL_DECLARED
/* 49 */
-EXTERN void TclBN_mp_zero (mp_int* a);
+EXTERN void TclBN_mp_zero(mp_int *a);
#endif
#ifndef TclBN_reverse_TCL_DECLARED
#define TclBN_reverse_TCL_DECLARED
/* 50 */
-EXTERN void TclBN_reverse (unsigned char* s, int len);
+EXTERN void TclBN_reverse(unsigned char*s, int len);
#endif
#ifndef TclBN_fast_s_mp_mul_digs_TCL_DECLARED
#define TclBN_fast_s_mp_mul_digs_TCL_DECLARED
/* 51 */
-EXTERN int TclBN_fast_s_mp_mul_digs (mp_int * a, mp_int * b,
- mp_int * c, int digs);
+EXTERN int TclBN_fast_s_mp_mul_digs(mp_int *a, mp_int *b,
+ mp_int *c, int digs);
#endif
#ifndef TclBN_fast_s_mp_sqr_TCL_DECLARED
#define TclBN_fast_s_mp_sqr_TCL_DECLARED
/* 52 */
-EXTERN int TclBN_fast_s_mp_sqr (mp_int* a, mp_int* b);
+EXTERN int TclBN_fast_s_mp_sqr(mp_int *a, mp_int *b);
#endif
#ifndef TclBN_mp_karatsuba_mul_TCL_DECLARED
#define TclBN_mp_karatsuba_mul_TCL_DECLARED
/* 53 */
-EXTERN int TclBN_mp_karatsuba_mul (mp_int* a, mp_int* b,
- mp_int* c);
+EXTERN int TclBN_mp_karatsuba_mul(mp_int *a, mp_int *b,
+ mp_int *c);
#endif
#ifndef TclBN_mp_karatsuba_sqr_TCL_DECLARED
#define TclBN_mp_karatsuba_sqr_TCL_DECLARED
/* 54 */
-EXTERN int TclBN_mp_karatsuba_sqr (mp_int* a, mp_int* b);
+EXTERN int TclBN_mp_karatsuba_sqr(mp_int *a, mp_int *b);
#endif
#ifndef TclBN_mp_toom_mul_TCL_DECLARED
#define TclBN_mp_toom_mul_TCL_DECLARED
/* 55 */
-EXTERN int TclBN_mp_toom_mul (mp_int* a, mp_int* b, mp_int* c);
+EXTERN int TclBN_mp_toom_mul(mp_int *a, mp_int *b, mp_int *c);
#endif
#ifndef TclBN_mp_toom_sqr_TCL_DECLARED
#define TclBN_mp_toom_sqr_TCL_DECLARED
/* 56 */
-EXTERN int TclBN_mp_toom_sqr (mp_int* a, mp_int* b);
+EXTERN int TclBN_mp_toom_sqr(mp_int *a, mp_int *b);
#endif
#ifndef TclBN_s_mp_add_TCL_DECLARED
#define TclBN_s_mp_add_TCL_DECLARED
/* 57 */
-EXTERN int TclBN_s_mp_add (mp_int* a, mp_int* b, mp_int* c);
+EXTERN int TclBN_s_mp_add(mp_int *a, mp_int *b, mp_int *c);
#endif
#ifndef TclBN_s_mp_mul_digs_TCL_DECLARED
#define TclBN_s_mp_mul_digs_TCL_DECLARED
/* 58 */
-EXTERN int TclBN_s_mp_mul_digs (mp_int* a, mp_int* b, mp_int* c,
+EXTERN int TclBN_s_mp_mul_digs(mp_int *a, mp_int *b, mp_int *c,
int digs);
#endif
#ifndef TclBN_s_mp_sqr_TCL_DECLARED
#define TclBN_s_mp_sqr_TCL_DECLARED
/* 59 */
-EXTERN int TclBN_s_mp_sqr (mp_int* a, mp_int* b);
+EXTERN int TclBN_s_mp_sqr(mp_int *a, mp_int *b);
#endif
#ifndef TclBN_s_mp_sub_TCL_DECLARED
#define TclBN_s_mp_sub_TCL_DECLARED
/* 60 */
-EXTERN int TclBN_s_mp_sub (mp_int* a, mp_int* b, mp_int* c);
+EXTERN int TclBN_s_mp_sub(mp_int *a, mp_int *b, mp_int *c);
#endif
typedef struct TclTomMathStubs {
@@ -459,65 +458,65 @@ typedef struct TclTomMathStubs {
int (*tclBN_epoch) (void); /* 0 */
int (*tclBN_revision) (void); /* 1 */
- int (*tclBN_mp_add) (mp_int* a, mp_int* b, mp_int* c); /* 2 */
- int (*tclBN_mp_add_d) (mp_int* a, mp_digit b, mp_int* c); /* 3 */
- int (*tclBN_mp_and) (mp_int* a, mp_int* b, mp_int* c); /* 4 */
- void (*tclBN_mp_clamp) (mp_int* a); /* 5 */
- void (*tclBN_mp_clear) (mp_int* a); /* 6 */
- void (*tclBN_mp_clear_multi) (mp_int* a, ...); /* 7 */
- int (*tclBN_mp_cmp) (mp_int* a, mp_int* b); /* 8 */
- int (*tclBN_mp_cmp_d) (mp_int* a, mp_digit b); /* 9 */
- int (*tclBN_mp_cmp_mag) (mp_int* a, mp_int* b); /* 10 */
- int (*tclBN_mp_copy) (mp_int* a, mp_int* b); /* 11 */
- int (*tclBN_mp_count_bits) (mp_int* a); /* 12 */
- int (*tclBN_mp_div) (mp_int* a, mp_int* b, mp_int* q, mp_int* r); /* 13 */
- int (*tclBN_mp_div_d) (mp_int* a, mp_digit b, mp_int* q, mp_digit* r); /* 14 */
- int (*tclBN_mp_div_2) (mp_int* a, mp_int* q); /* 15 */
- int (*tclBN_mp_div_2d) (mp_int* a, int b, mp_int* q, mp_int* r); /* 16 */
- int (*tclBN_mp_div_3) (mp_int* a, mp_int* q, mp_digit* r); /* 17 */
- void (*tclBN_mp_exch) (mp_int* a, mp_int* b); /* 18 */
- int (*tclBN_mp_expt_d) (mp_int* a, mp_digit b, mp_int* c); /* 19 */
- int (*tclBN_mp_grow) (mp_int* a, int size); /* 20 */
- int (*tclBN_mp_init) (mp_int* a); /* 21 */
- int (*tclBN_mp_init_copy) (mp_int * a, mp_int* b); /* 22 */
- int (*tclBN_mp_init_multi) (mp_int* a, ...); /* 23 */
- int (*tclBN_mp_init_set) (mp_int* a, mp_digit b); /* 24 */
- int (*tclBN_mp_init_size) (mp_int* a, int size); /* 25 */
- int (*tclBN_mp_lshd) (mp_int* a, int shift); /* 26 */
- int (*tclBN_mp_mod) (mp_int* a, mp_int* b, mp_int* r); /* 27 */
- int (*tclBN_mp_mod_2d) (mp_int* a, int b, mp_int* r); /* 28 */
- int (*tclBN_mp_mul) (mp_int* a, mp_int* b, mp_int* p); /* 29 */
- int (*tclBN_mp_mul_d) (mp_int* a, mp_digit b, mp_int* p); /* 30 */
- int (*tclBN_mp_mul_2) (mp_int* a, mp_int* p); /* 31 */
- int (*tclBN_mp_mul_2d) (mp_int* a, int d, mp_int* p); /* 32 */
- int (*tclBN_mp_neg) (mp_int* a, mp_int* b); /* 33 */
- int (*tclBN_mp_or) (mp_int* a, mp_int* b, mp_int* c); /* 34 */
- int (*tclBN_mp_radix_size) (mp_int* a, int radix, int* size); /* 35 */
- int (*tclBN_mp_read_radix) (mp_int* a, const char* str, int radix); /* 36 */
+ int (*tclBN_mp_add) (mp_int * a, mp_int * b, mp_int * c); /* 2 */
+ int (*tclBN_mp_add_d) (mp_int * a, mp_digit b, mp_int * c); /* 3 */
+ int (*tclBN_mp_and) (mp_int * a, mp_int * b, mp_int * c); /* 4 */
+ void (*tclBN_mp_clamp) (mp_int * a); /* 5 */
+ void (*tclBN_mp_clear) (mp_int * a); /* 6 */
+ void (*tclBN_mp_clear_multi) (mp_int * a, ...); /* 7 */
+ int (*tclBN_mp_cmp) (mp_int * a, mp_int * b); /* 8 */
+ int (*tclBN_mp_cmp_d) (mp_int * a, mp_digit b); /* 9 */
+ int (*tclBN_mp_cmp_mag) (mp_int * a, mp_int * b); /* 10 */
+ int (*tclBN_mp_copy) (mp_int * a, mp_int * b); /* 11 */
+ int (*tclBN_mp_count_bits) (mp_int * a); /* 12 */
+ int (*tclBN_mp_div) (mp_int * a, mp_int * b, mp_int * q, mp_int * r); /* 13 */
+ int (*tclBN_mp_div_d) (mp_int * a, mp_digit b, mp_int * q, mp_digit* r); /* 14 */
+ int (*tclBN_mp_div_2) (mp_int * a, mp_int * q); /* 15 */
+ int (*tclBN_mp_div_2d) (mp_int * a, int b, mp_int * q, mp_int * r); /* 16 */
+ int (*tclBN_mp_div_3) (mp_int * a, mp_int * q, mp_digit* r); /* 17 */
+ void (*tclBN_mp_exch) (mp_int * a, mp_int * b); /* 18 */
+ int (*tclBN_mp_expt_d) (mp_int * a, mp_digit b, mp_int * c); /* 19 */
+ int (*tclBN_mp_grow) (mp_int * a, int size); /* 20 */
+ int (*tclBN_mp_init) (mp_int * a); /* 21 */
+ int (*tclBN_mp_init_copy) (mp_int * a, mp_int * b); /* 22 */
+ int (*tclBN_mp_init_multi) (mp_int * a, ...); /* 23 */
+ int (*tclBN_mp_init_set) (mp_int * a, mp_digit b); /* 24 */
+ int (*tclBN_mp_init_size) (mp_int * a, int size); /* 25 */
+ int (*tclBN_mp_lshd) (mp_int * a, int shift); /* 26 */
+ int (*tclBN_mp_mod) (mp_int * a, mp_int * b, mp_int * r); /* 27 */
+ int (*tclBN_mp_mod_2d) (mp_int * a, int b, mp_int * r); /* 28 */
+ int (*tclBN_mp_mul) (mp_int * a, mp_int * b, mp_int * p); /* 29 */
+ int (*tclBN_mp_mul_d) (mp_int * a, mp_digit b, mp_int * p); /* 30 */
+ int (*tclBN_mp_mul_2) (mp_int * a, mp_int * p); /* 31 */
+ int (*tclBN_mp_mul_2d) (mp_int * a, int d, mp_int * p); /* 32 */
+ int (*tclBN_mp_neg) (mp_int * a, mp_int * b); /* 33 */
+ int (*tclBN_mp_or) (mp_int * a, mp_int * b, mp_int * c); /* 34 */
+ int (*tclBN_mp_radix_size) (mp_int * a, int radix, int* size); /* 35 */
+ int (*tclBN_mp_read_radix) (mp_int * a, const char* str, int radix); /* 36 */
void (*tclBN_mp_rshd) (mp_int * a, int shift); /* 37 */
- int (*tclBN_mp_shrink) (mp_int* a); /* 38 */
- void (*tclBN_mp_set) (mp_int* a, mp_digit b); /* 39 */
- int (*tclBN_mp_sqr) (mp_int* a, mp_int* b); /* 40 */
- int (*tclBN_mp_sqrt) (mp_int* a, mp_int* b); /* 41 */
- int (*tclBN_mp_sub) (mp_int* a, mp_int* b, mp_int* c); /* 42 */
- int (*tclBN_mp_sub_d) (mp_int* a, mp_digit b, mp_int* c); /* 43 */
- int (*tclBN_mp_to_unsigned_bin) (mp_int* a, unsigned char* b); /* 44 */
- int (*tclBN_mp_to_unsigned_bin_n) (mp_int* a, unsigned char* b, unsigned long* outlen); /* 45 */
- int (*tclBN_mp_toradix_n) (mp_int* a, char* str, int radix, int maxlen); /* 46 */
- int (*tclBN_mp_unsigned_bin_size) (mp_int* a); /* 47 */
- int (*tclBN_mp_xor) (mp_int* a, mp_int* b, mp_int* c); /* 48 */
- void (*tclBN_mp_zero) (mp_int* a); /* 49 */
+ int (*tclBN_mp_shrink) (mp_int * a); /* 38 */
+ void (*tclBN_mp_set) (mp_int * a, mp_digit b); /* 39 */
+ int (*tclBN_mp_sqr) (mp_int * a, mp_int * b); /* 40 */
+ int (*tclBN_mp_sqrt) (mp_int * a, mp_int * b); /* 41 */
+ int (*tclBN_mp_sub) (mp_int * a, mp_int * b, mp_int * c); /* 42 */
+ int (*tclBN_mp_sub_d) (mp_int * a, mp_digit b, mp_int * c); /* 43 */
+ int (*tclBN_mp_to_unsigned_bin) (mp_int * a, unsigned char* b); /* 44 */
+ int (*tclBN_mp_to_unsigned_bin_n) (mp_int * a, unsigned char* b, unsigned long* outlen); /* 45 */
+ int (*tclBN_mp_toradix_n) (mp_int * a, char* str, int radix, int maxlen); /* 46 */
+ int (*tclBN_mp_unsigned_bin_size) (mp_int * a); /* 47 */
+ int (*tclBN_mp_xor) (mp_int * a, mp_int * b, mp_int * c); /* 48 */
+ void (*tclBN_mp_zero) (mp_int * a); /* 49 */
void (*tclBN_reverse) (unsigned char* s, int len); /* 50 */
int (*tclBN_fast_s_mp_mul_digs) (mp_int * a, mp_int * b, mp_int * c, int digs); /* 51 */
- int (*tclBN_fast_s_mp_sqr) (mp_int* a, mp_int* b); /* 52 */
- int (*tclBN_mp_karatsuba_mul) (mp_int* a, mp_int* b, mp_int* c); /* 53 */
- int (*tclBN_mp_karatsuba_sqr) (mp_int* a, mp_int* b); /* 54 */
- int (*tclBN_mp_toom_mul) (mp_int* a, mp_int* b, mp_int* c); /* 55 */
- int (*tclBN_mp_toom_sqr) (mp_int* a, mp_int* b); /* 56 */
- int (*tclBN_s_mp_add) (mp_int* a, mp_int* b, mp_int* c); /* 57 */
- int (*tclBN_s_mp_mul_digs) (mp_int* a, mp_int* b, mp_int* c, int digs); /* 58 */
- int (*tclBN_s_mp_sqr) (mp_int* a, mp_int* b); /* 59 */
- int (*tclBN_s_mp_sub) (mp_int* a, mp_int* b, mp_int* c); /* 60 */
+ int (*tclBN_fast_s_mp_sqr) (mp_int * a, mp_int * b); /* 52 */
+ int (*tclBN_mp_karatsuba_mul) (mp_int * a, mp_int * b, mp_int * c); /* 53 */
+ int (*tclBN_mp_karatsuba_sqr) (mp_int * a, mp_int * b); /* 54 */
+ int (*tclBN_mp_toom_mul) (mp_int * a, mp_int * b, mp_int * c); /* 55 */
+ int (*tclBN_mp_toom_sqr) (mp_int * a, mp_int * b); /* 56 */
+ int (*tclBN_s_mp_add) (mp_int * a, mp_int * b, mp_int * c); /* 57 */
+ int (*tclBN_s_mp_mul_digs) (mp_int * a, mp_int * b, mp_int * c, int digs); /* 58 */
+ int (*tclBN_s_mp_sqr) (mp_int * a, mp_int * b); /* 59 */
+ int (*tclBN_s_mp_sub) (mp_int * a, mp_int * b, mp_int * c); /* 60 */
} TclTomMathStubs;
#if defined(USE_TCL_STUBS) && !defined(USE_TCL_STUB_PROCS)