aboutsummaryrefslogtreecommitdiff
path: root/src/libmp/port/dat.h
blob: 50fbf6713f907c90e2f50359c112d34b149cdd24 (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)