From ed3609258828942808702a07ef2986d7328efa3f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 12 Jan 1998 10:18:17 +0000 Subject: started with trust stuff --- include/mpi.h | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) (limited to 'include/mpi.h') diff --git a/include/mpi.h b/include/mpi.h index 4e25ab201..7c4639f18 100644 --- a/include/mpi.h +++ b/include/mpi.h @@ -39,27 +39,11 @@ #define DBG_MPI mpi_debug_mode int mpi_debug_mode; -#if defined(__i386__) - #define BITS_PER_MPI_LIMB 32 - #define BYTES_PER_MPI_LIMB 4 - #define BYTES_PER_MPI_LIMB2 8 - typedef unsigned long int mpi_limb_t; - typedef signed long int mpi_limb_signed_t; -#elif defined(__hppa__) - #define BITS_PER_MPI_LIMB 32 - #define BYTES_PER_MPI_LIMB 4 - #define BYTES_PER_MPI_LIMB2 8 - typedef unsigned long int mpi_limb_t; - typedef signed long int mpi_limb_signed_t; -#elif defined(__alpha__) - #define BITS_PER_MPI_LIMB 64 - #define BYTES_PER_MPI_LIMB 8 - #define BYTES_PER_MPI_LIMB2 16 - typedef unsigned long int mpi_limb_t; - typedef signed long int mpi_limb_signed_t; -#else - #error add definions for this machine here -#endif +#define BITS_PER_MPI_LIMB (8*SIZEOF_UNSIGNED_LONG) +#define BYTES_PER_MPI_LIMB SIZEOF_UNSIGNED_LONG +#define BYTES_PER_MPI_LIMB2 (2*SIZEOF_UNSIGNED_LONG) +typedef unsigned long int mpi_limb_t; +typedef signed long int mpi_limb_signed_t; typedef struct mpi_struct { int alloced; /* array size (# of allocated limbs) */ -- cgit v1.2.3