blob: bac2aafb999664edba98d90b41e7fc556b50faa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Index: mpi-1.8.6/mpi.h
===================================================================
--- mpi-1.8.6.orig/mpi.h 2011-12-27 14:01:24.628295000 -0800
+++ mpi-1.8.6/mpi.h 2011-12-27 14:46:02.227842000 -0800
@@ -72,8 +72,13 @@
#define MAX_RADIX 64
typedef struct {
+#if SIZEOF_INT >= SIZEOF_PTR
+ unsigned int sign : 1;
+ unsigned int alloc : sizeof(int)*CHAR_BIT - 1;
+#else
mp_sign sign; /* sign of this quantity */
mp_size alloc; /* how many digits allocated */
+#endif
mp_size used; /* how many digits used */
mp_digit *dp; /* the digits themselves */
} mp_int;
|