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 */ |
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]; |