summaryrefslogtreecommitdiff
path: root/mpi/mpi-mpow.c
diff options
context:
space:
mode:
authorMoritz Schulte <mo@g10code.com>2003-06-09 13:44:12 +0000
committerMoritz Schulte <mo@g10code.com>2003-06-09 13:44:12 +0000
commit9a06555b17e1bec8f13bf21473b24e6029f380a8 (patch)
tree59a2112345fe749c94a7cf93cc3f03009d2d5b4f /mpi/mpi-mpow.c
parent2ed6eec3359bbf04e819a260d6011d613151b5fd (diff)
downloadlibgcrypt-9a06555b17e1bec8f13bf21473b24e6029f380a8.tar.gz
2003-06-09 Moritz Schulte <moritz@g10code.com>
* mpicoder.c (gcry_mpi_scan): Adjust for libgpg-error. (gcry_mpi_print): Likewise. (gcry_mpi_aprint): Likewise. 2003-06-07 Moritz Schulte <moritz@g10code.com> * longlong.h, mpi-add.c, mpi-bit.c, mpi-cmp.c, mpi-div.c, mpi-gcd.c, mpi-inline.c, mpi-inline.h, mpi-internal.h, mpi-inv.c, mpi-mpow.c, mpi-mul.c, mpi-pow.c, mpi-scan.c, mpicoder.c, mpih-div.c, mpih-mul.c, mpiutil.c, generic/mpi-asm-defs.h, generic/mpih-add1.c, generic/mpih-lshift.c, generic/mpih-mul1.c, generic/mpih-mul2.c, generic/mpih-mul3.c, generic/mpih-rshift.c, generic/mpih-sub1.c, generic/udiv-w-sdiv.c, i386/syntax.h, m68k/syntax.h, mips3/mpi-asm-defs.h, powerpc32/syntax.h: Edited all preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it. Replaced any occurence of the now deprecated type names with the new ones.
Diffstat (limited to 'mpi/mpi-mpow.c')
-rw-r--r--mpi/mpi-mpow.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mpi/mpi-mpow.c b/mpi/mpi-mpow.c
index 0eef51f1..e8f43d1a 100644
--- a/mpi/mpi-mpow.c
+++ b/mpi/mpi-mpow.c
@@ -70,10 +70,10 @@ _gcry_mpi_mulpowm( MPI res, MPI *basearray, MPI *exparray, MPI m)
int i, j, idx;
MPI *G; /* table with precomputed values of size 2^k */
MPI tmp;
- #ifdef USE_BARRETT
+#ifdef USE_BARRETT
MPI barrett_y, barrett_r1, barrett_r2;
int barrett_k;
- #endif
+#endif
for(k=0; basearray[k]; k++ )
;
@@ -90,9 +90,9 @@ _gcry_mpi_mulpowm( MPI res, MPI *basearray, MPI *exparray, MPI m)
assert( k < 10 );
G = gcry_xcalloc( (1<<k) , sizeof *G );
- #ifdef USE_BARRETT
+#ifdef USE_BARRETT
barrett_y = init_barrett( m, &barrett_k, &barrett_r1, &barrett_r2 );
- #endif
+#endif
/* and calculate */
tmp = mpi_alloc( mpi_get_nlimbs(m)+1 );
mpi_set_ui( res, 1 );
@@ -123,11 +123,11 @@ _gcry_mpi_mulpowm( MPI res, MPI *basearray, MPI *exparray, MPI m)
/* cleanup */
mpi_free(tmp);
- #ifdef USE_BARRETT
+#ifdef USE_BARRETT
mpi_free(barrett_y);
mpi_free(barrett_r1);
mpi_free(barrett_r2);
- #endif
+#endif
for(i=0; i < (1<<k); i++ )
mpi_free(G[i]);
gcry_free(G);