diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-09-18 14:38:26 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-09-18 14:38:26 (GMT) |
commit | 7a4fe54c26332c21cd95b01cc07bd74714d060ae (patch) | |
tree | 10f652d15b7acb570ecce58ddcc42c714e6f39ce /generic | |
parent | 64cc2359605a427ced84a960a02e770c9c184be1 (diff) | |
download | tcl-7a4fe54c26332c21cd95b01cc07bd74714d060ae.zip tcl-7a4fe54c26332c21cd95b01cc07bd74714d060ae.tar.gz tcl-7a4fe54c26332c21cd95b01cc07bd74714d060ae.tar.bz2 |
Finish libtommath's constification work. All done (hopefully). And make sure that C preprocessor directives have the '#' as first character on the line.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclTomMath.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclTomMath.h b/generic/tclTomMath.h index 1f22d6f..c8b2a87 100644 --- a/generic/tclTomMath.h +++ b/generic/tclTomMath.h @@ -663,21 +663,21 @@ MODULE_SCOPE const mp_digit ltm_prime_tab[PRIME_SIZE]; /* result=1 if a is divisible by one of the first PRIME_SIZE primes */ /* -int mp_prime_is_divisible(mp_int *a, int *result); +int mp_prime_is_divisible(const mp_int *a, int *result); */ /* performs one Fermat test of "a" using base "b". * Sets result to 0 if composite or 1 if probable prime */ /* -int mp_prime_fermat(mp_int *a, mp_int *b, int *result); +int mp_prime_fermat(const mp_int *a, const mp_int *b, int *result); */ /* performs one Miller-Rabin test of "a" using base "b". * Sets result to 0 if composite or 1 if probable prime */ /* -int mp_prime_miller_rabin(mp_int *a, mp_int *b, int *result); +int mp_prime_miller_rabin(const mp_int *a, const mp_int *b, int *result); */ /* This gives [for a given bit size] the number of trials required @@ -695,7 +695,7 @@ int mp_prime_rabin_miller_trials(int size); * Sets result to 1 if probably prime, 0 otherwise */ /* -int mp_prime_is_prime(mp_int *a, int t, int *result); +int mp_prime_is_prime(const mp_int *a, int t, int *result); */ /* finds the next prime after the number "a" using "t" trials |