diff options
author | Moritz Schulte <mo@g10code.com> | 2003-06-17 17:41:00 +0000 |
---|---|---|
committer | Moritz Schulte <mo@g10code.com> | 2003-06-17 17:41:00 +0000 |
commit | cc4894aced863e9446ece68f69c422b166011606 (patch) | |
tree | 1192518d0734bf6cbb27d8976c997ae7e4b487c0 /mpi/mpi-bit.c | |
parent | e982889ce512b4963d8976c2840c8013333793e9 (diff) | |
download | libgcrypt-cc4894aced863e9446ece68f69c422b166011606.tar.gz |
2003-06-16 Moritz Schulte <moritz@g10code.com>
* mpi-add.c: Replace last occurences of old type names with newer
names (i.e. replace MPI with gcry_mpi_t).
* mpi-bit.c: Likewise.
* mpi-cmp.c: Likewise.
* mpi-div.c: Likewise.
* mpi-gcd.c: Likewise.
* mpi-internal.h: Likewise.
* mpi-inv.c: Likewise.
* mpi-mpow.c: Likewise.
* mpi-mul.c: Likewise.
* mpi-pow.c: Likewise.
* mpi-scan.c: Likewise.
* mpicoder.c: Likewise.
* mpiutil.c: Likewise.
Diffstat (limited to 'mpi/mpi-bit.c')
-rw-r--r-- | mpi/mpi-bit.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/mpi/mpi-bit.c b/mpi/mpi-bit.c index 1949a40a..71f8c425 100644 --- a/mpi/mpi-bit.c +++ b/mpi/mpi-bit.c @@ -53,7 +53,7 @@ __clz_tab[] = * this is for some reasons not good, so this function removes them. */ void -_gcry_mpi_normalize( MPI a ) +_gcry_mpi_normalize( gcry_mpi_t a ) { if( mpi_is_opaque(a) ) return; @@ -68,7 +68,7 @@ _gcry_mpi_normalize( MPI a ) * Return the number of bits in A. */ unsigned int -gcry_mpi_get_nbits( MPI a ) +gcry_mpi_get_nbits( gcry_mpi_t a ) { unsigned n; @@ -95,7 +95,7 @@ gcry_mpi_get_nbits( MPI a ) * Test whether bit N is set. */ int -gcry_mpi_test_bit( MPI a, unsigned int n ) +gcry_mpi_test_bit( gcry_mpi_t a, unsigned int n ) { unsigned int limbno, bitno; mpi_limb_t limb; @@ -114,7 +114,7 @@ gcry_mpi_test_bit( MPI a, unsigned int n ) * Set bit N of A. */ void -gcry_mpi_set_bit( MPI a, unsigned int n ) +gcry_mpi_set_bit( gcry_mpi_t a, unsigned int n ) { unsigned int limbno, bitno; @@ -133,7 +133,7 @@ gcry_mpi_set_bit( MPI a, unsigned int n ) * Set bit N of A. and clear all bits above */ void -gcry_mpi_set_highbit( MPI a, unsigned int n ) +gcry_mpi_set_highbit( gcry_mpi_t a, unsigned int n ) { unsigned int limbno, bitno; @@ -155,7 +155,7 @@ gcry_mpi_set_highbit( MPI a, unsigned int n ) * clear bit N of A and all bits above */ void -gcry_mpi_clear_highbit( MPI a, unsigned int n ) +gcry_mpi_clear_highbit( gcry_mpi_t a, unsigned int n ) { unsigned int limbno, bitno; @@ -174,7 +174,7 @@ gcry_mpi_clear_highbit( MPI a, unsigned int n ) * Clear bit N of A. */ void -gcry_mpi_clear_bit( MPI a, unsigned int n ) +gcry_mpi_clear_bit( gcry_mpi_t a, unsigned int n ) { unsigned int limbno, bitno; @@ -192,7 +192,7 @@ gcry_mpi_clear_bit( MPI a, unsigned int n ) * FIXME: should use alloc_limb if X and A are same. */ void -gcry_mpi_rshift( MPI x, MPI a, unsigned n ) +gcry_mpi_rshift( gcry_mpi_t x, gcry_mpi_t a, unsigned n ) { mpi_ptr_t xp; mpi_size_t xsize; @@ -215,7 +215,7 @@ gcry_mpi_rshift( MPI x, MPI a, unsigned n ) * This is used only within the MPI library */ void -_gcry_mpi_lshift_limbs( MPI a, unsigned int count ) +_gcry_mpi_lshift_limbs( gcry_mpi_t a, unsigned int count ) { mpi_ptr_t ap = a->d; int n = a->nlimbs; @@ -239,7 +239,7 @@ _gcry_mpi_lshift_limbs( MPI a, unsigned int count ) * This is used only within the MPI library */ void -_gcry_mpi_rshift_limbs( MPI a, unsigned int count ) +_gcry_mpi_rshift_limbs( gcry_mpi_t a, unsigned int count ) { mpi_ptr_t ap = a->d; mpi_size_t n = a->nlimbs; |