code: 9ferno

ref: 966a5434d9bbbc089bc07b71e158ed165fd64422
dir: /libmp/port/dat.h/

View raw version
#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 (~(uvlong)0)
#define MAXVLONG (MAXUVLONG>>1)
#define MINVLONG (MAXVLONG+(uvlong)1)