summaryrefslogtreecommitdiffstats
path: root/mpi
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-02-16 14:16:33 +0100
committerWerner Koch <wk@gnupg.org>1999-02-16 14:16:33 +0100
commite1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed (patch)
tree31dd54ac26b4c3fc30cc93d66161e72bf4cf7927 /mpi
parentSee ChangeLog: Sat Feb 13 14:13:04 CET 1999 Werner Koch (diff)
downloadgnupg2-e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed.tar.xz
gnupg2-e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed.zip
See ChangeLog: Tue Feb 16 14:10:02 CET 1999 Werner Koch
Diffstat (limited to 'mpi')
-rw-r--r--mpi/mpi-scan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mpi/mpi-scan.c b/mpi/mpi-scan.c
index 82ac7262a..ea5673f4f 100644
--- a/mpi/mpi-scan.c
+++ b/mpi/mpi-scan.c
@@ -32,7 +32,7 @@
* FIXME: This code is VERY ugly!
*/
int
-mpi_getbyte( MPI a, unsigned index )
+mpi_getbyte( MPI a, unsigned idx )
{
int i, j;
unsigned n;
@@ -43,7 +43,7 @@ mpi_getbyte( MPI a, unsigned index )
for(n=0,i=0; i < a->nlimbs; i++ ) {
limb = ap[i];
for( j=0; j < BYTES_PER_MPI_LIMB; j++, n++ )
- if( n == index )
+ if( n == idx )
return (limb >> j*8) & 0xff;
}
return -1;
@@ -51,10 +51,10 @@ mpi_getbyte( MPI a, unsigned index )
/****************
- * Put a value at position INDEX into A. index counts from lsb to msb
+ * Put a value at position IDX into A. idx counts from lsb to msb
*/
void
-mpi_putbyte( MPI a, unsigned index, int xc )
+mpi_putbyte( MPI a, unsigned idx, int xc )
{
int i, j;
unsigned n;
@@ -66,7 +66,7 @@ mpi_putbyte( MPI a, unsigned index, int xc )
for(n=0,i=0; i < a->alloced; i++ ) {
limb = ap[i];
for( j=0; j < BYTES_PER_MPI_LIMB; j++, n++ )
- if( n == index ) {
+ if( n == idx ) {
#if BYTES_PER_MPI_LIMB == 4
if( j == 0 )
limb = (limb & 0xffffff00) | c;