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

Comparing ray/src/util/ranimove2.c (file contents):
Revision 3.2 by greg, Tue Feb 25 02:47:24 2003 UTC vs.
Revision 3.4 by greg, Mon Jul 7 17:21:51 2003 UTC

# Line 11 | Line 11 | static const char      RCSid[] = "$Id$";
11  
12   #include "copyright.h"
13  
14 + #include <string.h>
15 +
16   #include "ranimove.h"
17   #include "random.h"
18  
# Line 36 | Line 38 | refine_first()                 /* initial refinement pass */
38                  printf("\tFirst refinement pass...");
39                  fflush(stdout);
40          }
41 <        bzero((void *)esamp, sizeof(int)*hres*vres);
41 >        memset((void *)esamp, '\0', sizeof(int)*hres*vres);
42          /*
43           * In our initial pass, we look for lower error pixels from
44           * the same objects in the previous frame, and copy them here.
# Line 294 | Line 296 | conspicuity()                  /* compute conspicuous error map */
296          int     fx, fy;
297                                          /* reuse previous z-buffer */
298          cerrmap = (float *)zprev;
299 <        bzero((void *)cerrmap, sizeof(float)*hres*vres);
299 >        memset((void *)cerrmap, '\0', sizeof(float)*hres*vres);
300          cerrzero = 1;
301                                          /* compute base pixel frequency */
302          pixel_deg = .5*(hres/vw.horiz + vres/vw.vert);
# Line 426 | Line 428 | long   nrays;
428          int     i;
429                                          /* skip if nothing significant */
430          if (ndtset && cerrzero)
431 <                return;
431 >                return(0);
432                                          /* initialize priority list */
433          pord = (int *)malloc(sizeof(int)*hres*vres);
434          for (i = hres*vres; i--; )

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines