diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 17:07:39 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 17:07:39 +0000 |
| commit | 37da2899f40661e3e9631e497da8dc59b971cbd0 (patch) | |
| tree | cbc6d4680e347d906f5fa7fca73214418741df72 /libmp/port/dat.h | |
| parent | 54bc8ff236ac10b3eaa928fd6bcfc0cdb2ba46ae (diff) | |
20060303a
Diffstat (limited to 'libmp/port/dat.h')
| -rw-r--r-- | libmp/port/dat.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libmp/port/dat.h b/libmp/port/dat.h new file mode 100644 index 00000000..69483d19 --- /dev/null +++ b/libmp/port/dat.h @@ -0,0 +1,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 (~(uvlong)0) +#define MAXVLONG (MAXUVLONG>>1) +#define MINVLONG (MAXVLONG+(uvlong)1) |
