summaryrefslogtreecommitdiffstats
path: root/include/mpi.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1997-11-27 12:44:13 +0100
committerWerner Koch <wk@gnupg.org>1997-11-27 12:44:13 +0100
commit649eae8f1b689e90695bbf24b636ca941dfb9689 (patch)
tree60b137945a1dc6a64dd5846864229c33dc86cf49 /include/mpi.h
parentHow with some assembly support (diff)
downloadgnupg2-649eae8f1b689e90695bbf24b636ca941dfb9689.tar.xz
gnupg2-649eae8f1b689e90695bbf24b636ca941dfb9689.zip
Improved prime number test
Diffstat (limited to 'include/mpi.h')
-rw-r--r--include/mpi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mpi.h b/include/mpi.h
index 9c5da6337..cf3623273 100644
--- a/include/mpi.h
+++ b/include/mpi.h
@@ -129,6 +129,7 @@ void mpi_fdiv_q( MPI quot, MPI dividend, MPI divisor );
void mpi_fdiv_qr( MPI quot, MPI rem, MPI dividend, MPI divisor );
void mpi_tdiv_r( MPI rem, MPI num, MPI den);
void mpi_tdiv_qr( MPI quot, MPI rem, MPI num, MPI den);
+void mpi_tdiv_q_2exp( MPI w, MPI u, unsigned count );
int mpi_divisible_ui(MPI dividend, ulong divisor );
/*-- mpi-gcd.c --*/
@@ -145,6 +146,7 @@ int mpi_cmp( MPI u, MPI v );
/*-- mpi-scan.c --*/
int mpi_getbyte( MPI a, unsigned index );
void mpi_putbyte( MPI a, unsigned index, int value );
+unsigned mpi_trailing_zeros( MPI a );
/*-- mpi-bit.c --*/
unsigned mpi_get_nbits( MPI a );