Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/cmd/unix/drawterm/libmp/dat.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#define	mpdighi  (mpdigit)(1U<<(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)
#define MAXUVLONG ((uvlong) ~0)
#define MAXVLONG (MAXUVLONG>>1)
#define MINVLONG (MAXVLONG+((uvlong) 1))

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].