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

Comparing ray/src/px/warp3d.c (file contents):
Revision 3.8 by greg, Tue May 25 22:04:14 2004 UTC vs.
Revision 3.9 by greg, Fri Sep 3 21:18:15 2010 UTC

# Line 33 | Line 33 | static int get3dgpt(W3VEC ov, GNDX ndx, WARP3D *wp);
33   static int get3dgin(W3VEC ov, GNDX ndx, W3VEC rem, WARP3D *wp);
34   static void l3interp(W3VEC vo, W3VEC *cl, W3VEC dv, int n);
35   static int warp3dex(W3VEC ov, W3VEC pi, WARP3D *wp);
36 //static unsigned long gridhash(const void *gp);
36   static lut_hashf_t gridhash;
37   static int new3dgrid(WARP3D *wp);
38   static void done3dgrid(struct grid3d *gp);
# Line 366 | Line 365 | free3dw(                       /* free WARP3D data */
365  
366   static unsigned long
367   gridhash(                       /* hash a grid point index */
369        //GNDX  gp
368          const void      *gp
369   )
370   {
373        //return(((unsigned long)gp[0]<<GNBITS | gp[1])<<GNBITS | gp[2]);
371          return(((unsigned long)((const unsigned char*)gp)[0]<<GNBITS | ((const unsigned char*)gp)[1])<<GNBITS | ((const unsigned char*)gp)[2]);
372   }
373  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines