File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / d / fpevent / const.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:30:17 2019 UTC (6 years, 11 months ago) by root
Branches: bsd, MAIN
CVS tags: v121, HEAD
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*/




unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.