ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/object.h
(Generate patch)

Comparing ray/src/common/object.h (file contents):
Revision 2.2 by greg, Mon Jan 25 12:41:25 1993 UTC vs.
Revision 2.7 by gwlarson, Tue Jan 19 16:01:54 1999 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1986 Regents of the University of California */
1 > /* Copyright (c) 1999 Silicon Graphics, Inc. */
2  
3 < /* SCCSid "$SunId$ LBL" */
3 > /* SCCSid "$SunId$ SGI" */
4  
5   /*
6   *  object.h - header file for routines using objects and object sets.
# Line 36 | Line 36 | typedef struct {
36  
37   #ifndef  OBJECT
38   #ifdef  BIGMEM
39 < #define  OBJECT         int             /* index to object array */
39 > #define  OBJECT         int4            /* index to object array */
40   #else
41 < #define  OBJECT         short           /* index to object array */
41 > #define  OBJECT         int2            /* index to object array */
42   #endif
43   #endif
44  
# Line 52 | Line 52 | typedef struct {
52  
53   #ifndef  MAXOBJBLK
54   #ifdef  BIGMEM
55 < #define  MAXOBJBLK      4095            /* maximum number of object blocks */
55 > #define  MAXOBJBLK      65535           /* maximum number of object blocks */
56   #else
57 < #define  MAXOBJBLK      511             /* maximum number of object blocks */
57 > #define  MAXOBJBLK      63              /* maximum number of object blocks */
58   #endif
59   #endif
60  
61   extern OBJREC  *objblock[MAXOBJBLK];    /* the object blocks */
62   extern OBJECT  nobjects;                /* # of objects */
63  
64 < #define  objptr(obj)    (objblock[(obj)>>6]+((obj)&077))
64 > #define  OBJBLKSHFT     9
65 > #define  OBJBLKSIZ      (1<<OBJBLKSHFT) /* object block size */
66 > #define  objptr(obj)    (objblock[(obj)>>OBJBLKSHFT]+((obj)&(OBJBLKSIZ-1)))
67  
68   #define  OVOID          (-1)            /* void object */
69   #define  VOIDID         "void"          /* void identifier */
# Line 72 | Line 74 | extern OBJECT  nobjects;               /* # of objects */
74   */
75  
76   #define  MAXSET         127             /* maximum object set size */
77 +
78 + OBJECT  *setsave();
79 +
80 + #define setfree(os)     free((char *)(os))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines