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

Comparing ray/src/hd/holo.c (file contents):
Revision 3.18 by schorsch, Thu Jun 26 00:58:10 2003 UTC vs.
Revision 3.19 by schorsch, Mon Jul 21 22:30:18 2003 UTC

# Line 90 | Line 90 | register int   i;
90          gc[1].i[1] = i / hp->grid[hdwg0[gc[1].w]];
91          gc[1].i[0] = i - gc[1].i[1]*hp->grid[hdwg0[gc[1].w]];
92          if (reverse) {
93 <                copystruct(g2, gc+1);
94 <                copystruct(gc+1, gc);
95 <                copystruct(gc, g2);
93 >                *g2 = *(gc+1);
94 >                *(gc+1) = *gc;
95 >                *gc = *g2;
96          }
97          return(1);                      /* we're done */
98   }
# Line 108 | Line 108 | register GCOORD        gc[2];
108          register int    i, j;
109                                          /* check ordering and limits */
110          if (reverse = gc[0].w > gc[1].w) {
111 <                copystruct(g2, gc+1);
112 <                copystruct(g2+1, gc);
111 >                *g2 = *(gc+1);
112 >                *(g2+1) = *gc;
113                  gc = g2;
114          } else if (gc[0].w == gc[1].w)
115                  return(0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines