diff options
author | Werner Koch <wk@gnupg.org> | 2000-11-14 16:04:09 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2000-11-14 16:04:09 +0000 |
commit | f8b22aaddc59f76501d5a49eb143a00d72be9668 (patch) | |
tree | c137aa411cc7e0427962475a6220b237a23ef9d8 /mpi/mpi-internal.h | |
parent | c0262da2b82bfedbe59b920d3377c600214a6907 (diff) | |
download | libgcrypt-f8b22aaddc59f76501d5a49eb143a00d72be9668.tar.gz |
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 cde1c0ce..3a7855de 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 |