tclTomMathDecls.h File Reference#include "tcl.h"
Go to the source code of this file.
|
Data Structures |
struct | TclTomMathStubs |
Defines |
#define | TCLTOMMATH_EPOCH 0 |
#define | TCLTOMMATH_REVISION 0 |
#define | Tcl_TomMath_InitStubs(interp, version) |
#define | TclBNAlloc(s) ((void*)ckalloc((size_t)(s))) |
#define | TclBNRealloc(x, s) ((void*)ckrealloc((char*)(x),(size_t)(s))) |
#define | TclBNFree(x) (ckfree((char*)(x))) |
#define | XMALLOC(x) TclBNAlloc(x) |
#define | XFREE(x) TclBNFree(x) |
#define | XREALLOC(x, n) TclBNRealloc(x,n) |
#define | XCALLOC(n, x) TclBNCalloc(n,x) |
#define | KARATSUBA_MUL_CUTOFF TclBNKaratsubaMulCutoff |
#define | KARATSUBA_SQR_CUTOFF TclBNKaratsubaSqrCutoff |
#define | TOOM_MUL_CUTOFF TclBNToomMulCutoff |
#define | TOOM_SQR_CUTOFF TclBNToomSqrCutoff |
#define | bn_reverse TclBN_reverse |
#define | fast_s_mp_mul_digs TclBN_fast_s_mp_mul_digs |
#define | fast_s_mp_sqr TclBN_fast_s_mp_sqr |
#define | mp_add TclBN_mp_add |
#define | mp_add_d TclBN_mp_add_d |
#define | mp_and TclBN_mp_and |
#define | mp_clamp TclBN_mp_clamp |
#define | mp_clear TclBN_mp_clear |
#define | mp_clear_multi TclBN_mp_clear_multi |
#define | mp_cmp TclBN_mp_cmp |
#define | mp_cmp_d TclBN_mp_cmp_d |
#define | mp_cmp_mag TclBN_mp_cmp_mag |
#define | mp_copy TclBN_mp_copy |
#define | mp_count_bits TclBN_mp_count_bits |
#define | mp_div TclBN_mp_div |
#define | mp_div_2 TclBN_mp_div_2 |
#define | mp_div_2d TclBN_mp_div_2d |
#define | mp_div_3 TclBN_mp_div_3 |
#define | mp_div_d TclBN_mp_div_d |
#define | mp_exch TclBN_mp_exch |
#define | mp_expt_d TclBN_mp_expt_d |
#define | mp_grow TclBN_mp_grow |
#define | mp_init TclBN_mp_init |
#define | mp_init_copy TclBN_mp_init_copy |
#define | mp_init_multi TclBN_mp_init_multi |
#define | mp_init_set TclBN_mp_init_set |
#define | mp_init_size TclBN_mp_init_size |
#define | mp_karatsuba_mul TclBN_mp_karatsuba_mul |
#define | mp_karatsuba_sqr TclBN_mp_karatsuba_sqr |
#define | mp_lshd TclBN_mp_lshd |
#define | mp_mod TclBN_mp_mod |
#define | mp_mod_2d TclBN_mp_mod_2d |
#define | mp_mul TclBN_mp_mul |
#define | mp_mul_2 TclBN_mp_mul_2 |
#define | mp_mul_2d TclBN_mp_mul_2d |
#define | mp_mul_d TclBN_mp_mul_d |
#define | mp_neg TclBN_mp_neg |
#define | mp_or TclBN_mp_or |
#define | mp_radix_size TclBN_mp_radix_size |
#define | mp_read_radix TclBN_mp_read_radix |
#define | mp_rshd TclBN_mp_rshd |
#define | mp_s_rmap TclBNMpSRmap |
#define | mp_set TclBN_mp_set |
#define | mp_shrink TclBN_mp_shrink |
#define | mp_sqr TclBN_mp_sqr |
#define | mp_sqrt TclBN_mp_sqrt |
#define | mp_sub TclBN_mp_sub |
#define | mp_sub_d TclBN_mp_sub_d |
#define | mp_to_unsigned_bin TclBN_mp_to_unsigned_bin |
#define | mp_to_unsigned_bin_n TclBN_mp_to_unsigned_bin_n |
#define | mp_toom_mul TclBN_mp_toom_mul |
#define | mp_toom_sqr TclBN_mp_toom_sqr |
#define | mp_toradix_n TclBN_mp_toradix_n |
#define | mp_unsigned_bin_size TclBN_mp_unsigned_bin_size |
#define | mp_xor TclBN_mp_xor |
#define | mp_zero TclBN_mp_zero |
#define | s_mp_add TclBN_s_mp_add |
#define | s_mp_mul_digs TclBN_s_mp_mul_digs |
#define | s_mp_sqr TclBN_s_mp_sqr |
#define | s_mp_sub TclBN_s_mp_sub |
#define | TCL_STORAGE_CLASS DLLIMPORT |
#define | TCL_STORAGE_CLASS DLLIMPORT |
Functions |
EXTERN int | TclBN_epoch (void) |
EXTERN int | TclBN_revision (void) |
EXTERN int | TclBN_mp_add (mp_int *a, mp_int *b, mp_int *c) |
EXTERN int | TclBN_mp_add_d (mp_int *a, mp_digit b, mp_int *c) |
EXTERN int | TclBN_mp_and (mp_int *a, mp_int *b, mp_int *c) |
EXTERN void | TclBN_mp_clamp (mp_int *a) |
EXTERN void | TclBN_mp_clear (mp_int *a) |
EXTERN void | TclBN_mp_clear_multi (mp_int *a,...) |
EXTERN int | TclBN_mp_cmp (mp_int *a, mp_int *b) |
EXTERN int | TclBN_mp_cmp_d (mp_int *a, mp_digit b) |
EXTERN int | TclBN_mp_cmp_mag (mp_int *a, mp_int *b) |
EXTERN int | TclBN_mp_copy (mp_int *a, mp_int *b) |
EXTERN int | TclBN_mp_count_bits (mp_int *a) |
EXTERN int | TclBN_mp_div (mp_int *a, mp_int *b, mp_int *q, mp_int *r) |
EXTERN int | TclBN_mp_div_d (mp_int *a, mp_digit b, mp_int *q, mp_digit *r) |
EXTERN int | TclBN_mp_div_2 (mp_int *a, mp_int *q) |
EXTERN int | TclBN_mp_div_2d (mp_int *a, int b, mp_int *q, mp_int *r) |
EXTERN int | TclBN_mp_div_3 (mp_int *a, mp_int *q, mp_digit *r) |
EXTERN void | TclBN_mp_exch (mp_int *a, mp_int *b) |
EXTERN int | TclBN_mp_expt_d (mp_int *a, mp_digit b, mp_int *c) |
EXTERN int | TclBN_mp_grow (mp_int *a, int size) |
EXTERN int | TclBN_mp_init (mp_int *a) |
EXTERN int | TclBN_mp_init_copy (mp_int *a, mp_int *b) |
EXTERN int | TclBN_mp_init_multi (mp_int *a,...) |
EXTERN int | TclBN_mp_init_set (mp_int *a, mp_digit b) |
EXTERN int | TclBN_mp_init_size (mp_int *a, int size) |
EXTERN int | TclBN_mp_lshd (mp_int *a, int shift) |
EXTERN int | TclBN_mp_mod (mp_int *a, mp_int *b, mp_int *r) |
EXTERN int | TclBN_mp_mod_2d (mp_int *a, int b, mp_int *r) |
EXTERN int | TclBN_mp_mul (mp_int *a, mp_int *b, mp_int *p) |
EXTERN int | TclBN_mp_mul_d (mp_int *a, mp_digit b, mp_int *p) |
EXTERN int | TclBN_mp_mul_2 (mp_int *a, mp_int *p) |
EXTERN int | TclBN_mp_mul_2d (mp_int *a, int d, mp_int *p) |
EXTERN int | TclBN_mp_neg (mp_int *a, mp_int *b) |
EXTERN int | TclBN_mp_or (mp_int *a, mp_int *b, mp_int *c) |
EXTERN int | TclBN_mp_radix_size (mp_int *a, int radix, int *size) |
EXTERN int | TclBN_mp_read_radix (mp_int *a, const char *str, int radix) |
EXTERN void | TclBN_mp_rshd (mp_int *a, int shift) |
EXTERN int | TclBN_mp_shrink (mp_int *a) |
EXTERN void | TclBN_mp_set (mp_int *a, mp_digit b) |
EXTERN int | TclBN_mp_sqr (mp_int *a, mp_int *b) |
EXTERN int | TclBN_mp_sqrt (mp_int *a, mp_int *b) |
EXTERN int | TclBN_mp_sub (mp_int *a, mp_int *b, mp_int *c) |
EXTERN int | TclBN_mp_sub_d (mp_int *a, mp_digit b, mp_int *c) |
EXTERN int | TclBN_mp_to_unsigned_bin (mp_int *a, unsigned char *b) |
EXTERN int | TclBN_mp_to_unsigned_bin_n (mp_int *a, unsigned char *b, unsigned long *outlen) |
EXTERN int | TclBN_mp_toradix_n (mp_int *a, char *str, int radix, int maxlen) |
EXTERN int | TclBN_mp_unsigned_bin_size (mp_int *a) |
EXTERN int | TclBN_mp_xor (mp_int *a, mp_int *b, mp_int *c) |
EXTERN void | TclBN_mp_zero (mp_int *a) |
EXTERN void | TclBN_reverse (unsigned char *s, int len) |
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_sqr (mp_int *a, mp_int *b) |
EXTERN int | TclBN_mp_karatsuba_mul (mp_int *a, mp_int *b, mp_int *c) |
EXTERN int | TclBN_mp_karatsuba_sqr (mp_int *a, mp_int *b) |
EXTERN int | TclBN_mp_toom_mul (mp_int *a, mp_int *b, mp_int *c) |
EXTERN int | TclBN_mp_toom_sqr (mp_int *a, mp_int *b) |
EXTERN int | TclBN_s_mp_add (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) |
EXTERN int | TclBN_s_mp_sqr (mp_int *a, mp_int *b) |
EXTERN int | TclBN_s_mp_sub (mp_int *a, mp_int *b, mp_int *c) |
Variables |
TclTomMathStubs * | tclTomMathStubsPtr |
Define Documentation
#define bn_reverse TclBN_reverse |
#define fast_s_mp_mul_digs TclBN_fast_s_mp_mul_digs |
#define fast_s_mp_sqr TclBN_fast_s_mp_sqr |
#define mp_add TclBN_mp_add |
#define mp_add_d TclBN_mp_add_d |
#define mp_and TclBN_mp_and |
#define mp_clamp TclBN_mp_clamp |
#define mp_clear TclBN_mp_clear |
#define mp_clear_multi TclBN_mp_clear_multi |
#define mp_cmp TclBN_mp_cmp |
#define mp_cmp_d TclBN_mp_cmp_d |
#define mp_cmp_mag TclBN_mp_cmp_mag |
#define mp_copy TclBN_mp_copy |
#define mp_count_bits TclBN_mp_count_bits |
#define mp_div TclBN_mp_div |
#define mp_div_2 TclBN_mp_div_2 |
#define mp_div_2d TclBN_mp_div_2d |
#define mp_div_3 TclBN_mp_div_3 |
#define mp_div_d TclBN_mp_div_d |
#define mp_exch TclBN_mp_exch |
#define mp_expt_d TclBN_mp_expt_d |
#define mp_grow TclBN_mp_grow |
#define mp_init TclBN_mp_init |
#define mp_init_copy TclBN_mp_init_copy |
#define mp_init_multi TclBN_mp_init_multi |
#define mp_init_set TclBN_mp_init_set |
#define mp_init_size TclBN_mp_init_size |
#define mp_karatsuba_mul TclBN_mp_karatsuba_mul |
#define mp_karatsuba_sqr TclBN_mp_karatsuba_sqr |
#define mp_lshd TclBN_mp_lshd |
#define mp_mod TclBN_mp_mod |
#define mp_mod_2d TclBN_mp_mod_2d |
#define mp_mul TclBN_mp_mul |
#define mp_mul_2 TclBN_mp_mul_2 |
#define mp_mul_2d TclBN_mp_mul_2d |
#define mp_mul_d TclBN_mp_mul_d |
#define mp_neg TclBN_mp_neg |
#define mp_or TclBN_mp_or |
#define mp_radix_size TclBN_mp_radix_size |
#define mp_read_radix TclBN_mp_read_radix |
#define mp_rshd TclBN_mp_rshd |
#define mp_set TclBN_mp_set |
#define mp_shrink TclBN_mp_shrink |
#define mp_sqr TclBN_mp_sqr |
#define mp_sqrt TclBN_mp_sqrt |
#define mp_sub TclBN_mp_sub |
#define mp_sub_d TclBN_mp_sub_d |
#define mp_to_unsigned_bin TclBN_mp_to_unsigned_bin |
#define mp_to_unsigned_bin_n TclBN_mp_to_unsigned_bin_n |
#define mp_toom_mul TclBN_mp_toom_mul |
#define mp_toom_sqr TclBN_mp_toom_sqr |
#define mp_toradix_n TclBN_mp_toradix_n |
#define mp_unsigned_bin_size TclBN_mp_unsigned_bin_size |
#define mp_xor TclBN_mp_xor |
#define mp_zero TclBN_mp_zero |
#define s_mp_add TclBN_s_mp_add |
#define s_mp_mul_digs TclBN_s_mp_mul_digs |
#define s_mp_sqr TclBN_s_mp_sqr |
#define s_mp_sub TclBN_s_mp_sub |
#define TCL_STORAGE_CLASS DLLIMPORT |
#define TCL_STORAGE_CLASS DLLIMPORT |
#define Tcl_TomMath_InitStubs |
( |
interp, |
|
|
version |
|
) |
|
#define TclBNAlloc |
( |
s |
|
) |
((void*)ckalloc((size_t)(s))) |
#define TclBNFree |
( |
x |
|
) |
(ckfree((char*)(x))) |
#define TclBNRealloc |
( |
x, |
|
|
s |
|
) |
((void*)ckrealloc((char*)(x),(size_t)(s))) |
#define TCLTOMMATH_EPOCH 0 |
#define TCLTOMMATH_REVISION 0 |
#define XCALLOC |
( |
n, |
|
|
x |
|
) |
TclBNCalloc(n,x) |
#define XFREE |
( |
x |
|
) |
TclBNFree(x) |
#define XMALLOC |
( |
x |
|
) |
TclBNAlloc(x) |
#define XREALLOC |
( |
x, |
|
|
n |
|
) |
TclBNRealloc(x,n) |
Function Documentation
EXTERN int TclBN_epoch |
( |
void |
|
) |
|
EXTERN void TclBN_mp_clamp |
( |
mp_int * |
a |
) |
|
EXTERN void TclBN_mp_clear |
( |
mp_int * |
a |
) |
|
EXTERN void TclBN_mp_clear_multi |
( |
mp_int * |
a, |
|
|
|
... | |
|
) |
| | |
EXTERN int TclBN_mp_count_bits |
( |
mp_int * |
a |
) |
|
EXTERN int TclBN_mp_grow |
( |
mp_int * |
a, |
|
|
int |
size | |
|
) |
| | |
EXTERN int TclBN_mp_init |
( |
mp_int * |
a |
) |
|
EXTERN int TclBN_mp_init_multi |
( |
mp_int * |
a, |
|
|
|
... | |
|
) |
| | |
EXTERN int TclBN_mp_init_size |
( |
mp_int * |
a, |
|
|
int |
size | |
|
) |
| | |
EXTERN int TclBN_mp_karatsuba_sqr |
( |
mp_int * |
a, |
|
|
mp_int * |
b | |
|
) |
| | |
EXTERN int TclBN_mp_lshd |
( |
mp_int * |
a, |
|
|
int |
shift | |
|
) |
| | |
EXTERN int TclBN_mp_mod_2d |
( |
mp_int * |
a, |
|
|
int |
b, |
|
|
mp_int * |
r | |
|
) |
| | |
EXTERN int TclBN_mp_mul_2d |
( |
mp_int * |
a, |
|
|
int |
d, |
|
|
mp_int * |
p | |
|
) |
| | |
EXTERN int TclBN_mp_radix_size |
( |
mp_int * |
a, |
|
|
int |
radix, |
|
|
int * |
size | |
|
) |
| | |
EXTERN int TclBN_mp_read_radix |
( |
mp_int * |
a, |
|
|
const char * |
str, |
|
|
int |
radix | |
|
) |
| | |
EXTERN void TclBN_mp_rshd |
( |
mp_int * |
a, |
|
|
int |
shift | |
|
) |
| | |
EXTERN int TclBN_mp_shrink |
( |
mp_int * |
a |
) |
|
EXTERN int TclBN_mp_to_unsigned_bin |
( |
mp_int * |
a, |
|
|
unsigned char * |
b | |
|
) |
| | |
EXTERN int TclBN_mp_to_unsigned_bin_n |
( |
mp_int * |
a, |
|
|
unsigned char * |
b, |
|
|
unsigned long * |
outlen | |
|
) |
| | |
EXTERN int TclBN_mp_toradix_n |
( |
mp_int * |
a, |
|
|
char * |
str, |
|
|
int |
radix, |
|
|
int |
maxlen | |
|
) |
| | |
EXTERN int TclBN_mp_unsigned_bin_size |
( |
mp_int * |
a |
) |
|
EXTERN void TclBN_mp_zero |
( |
mp_int * |
a |
) |
|
EXTERN void TclBN_reverse |
( |
unsigned char * |
s, |
|
|
int |
len | |
|
) |
| | |
EXTERN int TclBN_revision |
( |
void |
|
) |
|
Variable Documentation
Generated on Wed Mar 12 12:18:34 2008 by
1.5.1
|