|
|
Power 6/32 Unix version 1.21
/* ?????????????????? */
/* const.h 1.1 8/24/82 */
/* fundamental constants */
/*
* fundamental constants of the implementation--
* cannot be changed easily.
*/
#define NBBY 8 /* number of bits in a byte */
#define NBPW sizeof(int) /* number of bytes in an integer */
#define NBPG 1024
#define PGOFSET (NBPG-1) /* byte offset into page */
#define PGSHIFT 10 /* LOG2(NBPG) */
#define NULL 0
/*
* Macros for fast min/max
*/
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
/*
* Machine-dependent bits and macros
*/
#define UMODE PSL_CURMOD /* usermode bits */
#define USERMODE(ps) (((ps) & UMODE) == UMODE)
#define BASEPRI(ps) (((ps) & PSL_IPL) != 0)
/*
* Provide about n microseconds of delay
*/
#define DELAY(n) { register int N = (n); while (--N > 0); }
/*
* system constants used by initialization program
*/
#define LSP 511 /*last system page*/
#define MAX_MEM 32*1024*NBPG - 1 /*maximum Tahoe memory*/
#define MEM_INC 512*NBPG /*memory increment = 1/2 megabyte*/
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.