aboutsummaryrefslogtreecommitdiff
path: root/src/libmp/port/dat.h
blob: 95f4196f2c6629e6db3d16ec2b2c9b29bd73ef57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#define	mpdighi  (mpdigit)((ulong)1<<(Dbits-1))
#define DIGITS(x) ((Dbits - 1 + (x))/Dbits)

/* for converting between int's and mpint's */
#define MAXUINT ((uint)-1)
#define MAXINT (MAXUINT>>1)
#define MININT (MAXINT+1)

/* for converting between vlongs's and mpint's */
#define MAXUVLONG (~0ULL)
#define MAXVLONG (MAXUVLONG>>1)
#define MINVLONG (MAXVLONG+1ULL)