diff options
author | Werner Koch <[email protected]> | 2000-11-14 16:04:16 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2000-11-14 16:04:16 +0000 |
commit | 986649bea0798cb6509069d046197f9628932c01 (patch) | |
tree | abfbefbde834a919bba8e3ada10c0d864715ec0a /mpi/mpi-internal.h | |
parent | Add features packet and fixes MIPS3. (diff) | |
download | gnupg-986649bea0798cb6509069d046197f9628932c01.tar.gz gnupg-986649bea0798cb6509069d046197f9628932c01.zip |
Some configuration changes
Diffstat (limited to 'mpi/mpi-internal.h')
-rw-r--r-- | mpi/mpi-internal.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mpi/mpi-internal.h b/mpi/mpi-internal.h index cde1c0ce2..3a7855de8 100644 --- a/mpi/mpi-internal.h +++ b/mpi/mpi-internal.h @@ -30,6 +30,24 @@ #ifndef G10_MPI_INTERNAL_H #define G10_MPI_INTERNAL_H +#include "mpi-asm-defs.h" +#if BYTES_PER_MPI_LIMB == SIZEOF_UNSIGNED_INT + typedef unsigned int mpi_limb_t; + typedef signed int mpi_limb_signed_t; +#elif BYTES_PER_MPI_LIMB == SIZEOF_UNSIGNED_LONG + typedef unsigned long int mpi_limb_t; + typedef signed long int mpi_limb_signed_t; +#elif BYTES_PER_MPI_LIMB == SIZEOF_UNSIGNED_LONG_LONG + typedef unsigned long long int mpi_limb_t; + typedef signed long long int mpi_limb_signed_t; +#elif BYTES_PER_MPI_LIMB == SIZEOF_UNSIGNED_SHORT + 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 +#endif +#define BITS_PER_MPI_LIMB (8*BYTES_PER_MPI_LIMB) +#define DID_MPI_LIMB_TYPEDEF 1 #include "mpi.h" /* If KARATSUBA_THRESHOLD is not already defined, define it to a |