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.7 by schorsch, Sun Mar 28 20:33:14 2004 UTC vs.
Revision 3.11 by greg, Sat Dec 28 18:05:14 2019 UTC

# Line 5 | Line 5 | static const char      RCSid[] = "$Id$";
5   * 3D warping routines.
6   */
7  
8 #include <stdio.h>
8   #include <stdlib.h>
9   #include <math.h>
10  
# Line 33 | Line 32 | static int get3dgpt(W3VEC ov, GNDX ndx, WARP3D *wp);
32   static int get3dgin(W3VEC ov, GNDX ndx, W3VEC rem, WARP3D *wp);
33   static void l3interp(W3VEC vo, W3VEC *cl, W3VEC dv, int n);
34   static int warp3dex(W3VEC ov, W3VEC pi, WARP3D *wp);
36 //static unsigned long gridhash(void *gp);
35   static lut_hashf_t gridhash;
36   static int new3dgrid(WARP3D *wp);
37   static void done3dgrid(struct grid3d *gp);
# Line 366 | Line 364 | free3dw(                       /* free WARP3D data */
364  
365   static unsigned long
366   gridhash(                       /* hash a grid point index */
367 <        //GNDX  gp
370 <        void    *gp
367 >        const char      *gp
368   )
369   {
370 <        //return(((unsigned long)gp[0]<<GNBITS | gp[1])<<GNBITS | gp[2]);
374 <        return(((unsigned long)((unsigned char*)gp)[0]<<GNBITS | ((unsigned char*)gp)[1])<<GNBITS | ((unsigned char*)gp)[2]);
370 >        return(((unsigned long)((const unsigned char*)gp)[0]<<GNBITS | ((const unsigned char*)gp)[1])<<GNBITS | ((const unsigned char*)gp)[2]);
371   }
372  
373  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines