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

Comparing ray/src/px/closest.c (file contents):
Revision 2.2 by greg, Sat Feb 22 02:07:27 2003 UTC vs.
Revision 2.3 by schorsch, Sun Jul 27 22:12:03 2003 UTC

# Line 77 | Line 77 | int k;         /* matches for colors in bucket #k */
77  
78      if (!sq[0]) for (j= -255; j<256; j++) sq[j+255] = j*j;
79  
80 <    r = k>>1&0xe0|H;                    /* center of 32x32x32 cubical bucket */
81 <    g = k<<2&0xe0|H;
82 <    b = k<<5&0xe0|H;
80 >    r = (k>>1&0xe0)|H;                  /* center of 32x32x32 cubical bucket */
81 >    g = (k<<2&0xe0)|H;
82 >    b = (k<<5&0xe0)|H;
83      rsq = sq+255-r;
84      gsq = sq+255-g;
85      bsq = sq+255-b;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines