plan 9 kernel history: overview | file list | diff list

1994/0322/pc/mem.h (diff list | history)

1994/0311/sys/src/9/pc/mem.h:12,181994/0322/sys/src/9/pc/mem.h:12,19 (short | long | prev | next)
Add ROUND, rewrite PGROUND.
rsc Fri Mar 4 12:44:25 2005
1991/0625    
#define	BY2PG		4096			/* bytes per page */ 
#define	WD2PG		(BY2PG/BY2WD)		/* words per page */ 
1991/0711    
#define	PGSHIFT		12			/* log(BY2PG) */ 
1991/0625    
#define PGROUND(s)	(((s)+(BY2PG-1))&~(BY2PG-1)) 
1994/0322    
#define ROUND(s, sz)	(((s)+(sz-1))&~(sz-1)) 
#define PGROUND(s)	ROUND(s, BY2PG) 
1991/0625    
 
#define	MAXMACH		1			/* max # cpus system can run */ 
 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)