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

Comparing ray/src/rt/ambient.c (file contents):
Revision 2.37 by greg, Tue May 28 14:24:44 1996 UTC vs.
Revision 2.38 by greg, Tue Jul 9 13:32:35 1996 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1995 Regents of the University of California */
1 > /* Copyright (c) 1996 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 572 | Line 572 | static int
572   alatcmp(avp1, avp2)                     /* compare ambient values for MRA */
573   AMBVAL  **avp1, **avp2;
574   {
575 <        return((**avp2).latick - (**avp1).latick);
575 >        register long  lc = (**avp2).latick - (**avp1).latick;
576 >        return(lc<0 ? -1 : lc>0 ? 1 : 0);
577   }
578  
579  
# Line 584 | Line 585 | AMBVAL **avp1, **avp2;
585   }
586  
587  
588 < #ifdef DEBUG
588 > #if  1
589   static int
590   avlmemi(avaddr)                         /* find list position from address */
591   AMBVAL  *avaddr;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines