--- ray/src/common/object.h 1998/08/25 10:16:08 2.5 +++ ray/src/common/object.h 1999/01/19 16:01:54 2.7 @@ -1,6 +1,6 @@ -/* Copyright (c) 1986 Regents of the University of California */ +/* Copyright (c) 1999 Silicon Graphics, Inc. */ -/* SCCSid "$SunId$ LBL" */ +/* SCCSid "$SunId$ SGI" */ /* * object.h - header file for routines using objects and object sets. @@ -54,15 +54,16 @@ typedef struct { #ifdef BIGMEM #define MAXOBJBLK 65535 /* maximum number of object blocks */ #else -#define MAXOBJBLK 31 /* maximum number of object blocks */ +#define MAXOBJBLK 63 /* maximum number of object blocks */ #endif #endif extern OBJREC *objblock[MAXOBJBLK]; /* the object blocks */ extern OBJECT nobjects; /* # of objects */ -#define OBJBLKSIZ 01000 /* object block size */ -#define objptr(obj) (objblock[(obj)>>9]+((obj)&0777)) +#define OBJBLKSHFT 9 +#define OBJBLKSIZ (1<>OBJBLKSHFT]+((obj)&(OBJBLKSIZ-1))) #define OVOID (-1) /* void object */ #define VOIDID "void" /* void identifier */