ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/glareval.c
(Generate patch)

Comparing ray/src/util/glareval.c (file contents):
Revision 1.8 by greg, Wed Apr 3 15:20:35 1991 UTC vs.
Revision 1.9 by greg, Wed Apr 3 15:43:12 1991 UTC

# Line 20 | Line 20 | static char SCCSid[] = "$SunId$ LBL";
20   #define vfork           fork
21   #endif
22  
23 < #define MAXSBUF         409580  /* maximum total size of scanline buffer */
24 < #define HSIZE           227     /* size of scanline hash table */
23 > #define MAXSBUF         1023980 /* maximum total size of scanline buffer */
24 > #define HSIZE           317     /* size of scanline hash table */
25   #define NRETIRE         16      /* number of scanlines to retire at once */
26  
27   int     rt_pid = -1;            /* process id for rtrace */
# Line 426 | Line 426 | scanretire()                   /* retire old scanlines to free list */
426                                          register int    oh;
427                                          oh = shash(sold[NRETIRE-1]->y);
428                                          sold[NRETIRE-1]->next = hashtab[oh];
429 <                                        if (h == oh && sl == &head)
430 <                                                head.next = sl = sold[NRETIRE-1];
431 <                                        else
429 >                                        if (h == oh) {
430 >                                                head.next = sold[NRETIRE-1];
431 >                                                if (sl == &head)
432 >                                                        sl = head.next;
433 >                                        } else
434                                                  hashtab[oh] = sold[NRETIRE-1];
435                                  } else                  /* else bubble up */
436                                          sold[i] = sold[i-1];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines