summaryrefslogtreecommitdiff
path: root/mpi/mpi-internal.h
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-internal.h
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-internal.h')
-rw-r--r--mpi/mpi-internal.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/mpi/mpi-internal.h b/mpi/mpi-internal.h
index 1eacc704..4fbd8e51 100644
--- a/mpi/mpi-internal.h
+++ b/mpi/mpi-internal.h
@@ -44,7 +44,7 @@
typedef unsigned short int mpi_limb_t;
typedef signed short int mpi_limb_signed_t;
#else
- #error BYTES_PER_MPI_LIMB does not match any C type
+#error BYTES_PER_MPI_LIMB does not match any C type
#endif
#define BITS_PER_MPI_LIMB (8*BYTES_PER_MPI_LIMB)
#endif /*BITS_PER_MPI_LIMB*/
@@ -58,13 +58,13 @@
* checking a 768 and a 1024 bit ElGamal signature.
* (wk 22.12.97) */
#ifndef KARATSUBA_THRESHOLD
- #define KARATSUBA_THRESHOLD 16
+#define KARATSUBA_THRESHOLD 16
#endif
/* The code can't handle KARATSUBA_THRESHOLD smaller than 2. */
#if KARATSUBA_THRESHOLD < 2
- #undef KARATSUBA_THRESHOLD
- #define KARATSUBA_THRESHOLD 2
+#undef KARATSUBA_THRESHOLD
+#define KARATSUBA_THRESHOLD 2
#endif
@@ -170,13 +170,13 @@ typedef int mpi_size_t; /* (must be a signed type) */
/*-- mpiutil.c --*/
#ifdef M_DEBUG
- #define mpi_alloc_limb_space(n,f) _gcry_mpi_debug_alloc_limb_space((n),(f), M_DBGINFO( __LINE__ ) )
- #define mpi_free_limb_space(n) _gcry_mpi_debug_free_limb_space((n), M_DBGINFO( __LINE__ ) )
+#define mpi_alloc_limb_space(n,f) _gcry_mpi_debug_alloc_limb_space((n),(f), M_DBGINFO( __LINE__ ) )
+#define mpi_free_limb_space(n) _gcry_mpi_debug_free_limb_space((n), M_DBGINFO( __LINE__ ) )
mpi_ptr_t _gcry_mpi_debug_alloc_limb_space( unsigned nlimbs, int sec, const char *info );
void _gcry_mpi_debug_free_limb_space( mpi_ptr_t a, const char *info );
#else
- #define mpi_alloc_limb_space(n,f) _gcry_mpi_alloc_limb_space((n),(f))
- #define mpi_free_limb_space(n) _gcry_mpi_free_limb_space((n))
+#define mpi_alloc_limb_space(n,f) _gcry_mpi_alloc_limb_space((n),(f))
+#define mpi_free_limb_space(n) _gcry_mpi_free_limb_space((n))
mpi_ptr_t _gcry_mpi_alloc_limb_space( unsigned nlimbs, int sec );
void _gcry_mpi_free_limb_space( mpi_ptr_t a );
#endif
@@ -274,7 +274,7 @@ mpi_limb_t _gcry_mpih_rshift( mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize,
#endif
#ifdef __GNUC__
- #include "mpi-inline.h"
+#include "mpi-inline.h"
#endif
#endif /*G10_MPI_INTERNAL_H*/