home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_200
/
247_02
/
mirdef.h32
< prev
next >
Wrap
Text File
|
1989-04-19
|
2KB
|
53 lines
/*
* MIRACL definitions - mirdef.h
* This version suitable for use with most 32-bit computers
* e.g. VAX11/780
*/
#define small int
/* smalls are usually ints, but see *
* bnmuldv.any */
#define MAXNUM 1073741824L
/* =2^[L-2] where L is the number *
* of bits in a 'long' data type */
#define MAXBASE 1073741824
/* = 2^[W-2] where W is the number *
* of bits in a small and L>=2W OR *
* if double-small sized integer is *
* available at machine code level *
* and muldiv is written in assembly *
* language to take advantage of it. *
* Otherwise = 2^[(W/2)-1] */
#define TOOBIG 1073741824
/* = 2^[I-2] where I is the number *
* of bits in an 'int' */
#define MSK 0xFFFF
/* 2^(W/2) - 1 */
#define BTS 16
/* (W/2) */
#define WPERD 2
/* (Bits in double mantissa)/(W-2) */
#define BIGGEST 1.0E38
/* biggest representable double */
#define IBSIZ 132
/* Input buffer size */
#define OBSIZ 256
/* Output buffer size */
/* some useful definitions */
#define bool int
#define forever for(;;)
#define sign(x) ((x)<0? (-1) : 1)
#define abs(x) ((x)<0? (-(x)) : (x))
#define FALSE 0
#define TRUE 1
#define OFF 0
#define ON 1
#define PLUS 1
#define MINUS (-1)