summaryrefslogtreecommitdiffstats
path: root/include/mpi.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-01-12 11:18:17 +0100
committerWerner Koch <wk@gnupg.org>1998-01-12 11:18:17 +0100
commited3609258828942808702a07ef2986d7328efa3f (patch)
tree185f17c055b38fee37bc0090789dcf96a1535c8c /include/mpi.h
parentpatchlevel 2 (diff)
downloadgnupg2-ed3609258828942808702a07ef2986d7328efa3f.tar.xz
gnupg2-ed3609258828942808702a07ef2986d7328efa3f.zip
started with trust stuff
Diffstat (limited to 'include/mpi.h')
-rw-r--r--include/mpi.h26
1 files changed, 5 insertions, 21 deletions
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) */