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

Comparing ray/src/util/pvsum.c (file contents):
Revision 2.12 by greg, Thu Oct 30 16:47:13 2025 UTC vs.
Revision 2.13 by greg, Thu Oct 30 20:54:27 2025 UTC

# Line 722 | Line 722 | badopt:                        fprintf(stderr, "%s: bad option: %s\n", argv
722          if (cacheGB > 1e-4) {           /* figure out # of passes => rintvl */
723                  size_t  inp_bytes = (in_type==DTfloat ? sizeof(float)*ncomp
724                                                  : (size_t)(ncomp+1)) * xres*yres;
725 <                size_t  over_bytes = sizeof(float)*ncomp*xres*yres +
725 >                size_t  over_bytes = rmx_array_size(cmtx) +
726 >                                        sizeof(float)*ncomp*xres*yres +
727                                          2*(out_type==DTfloat ? sizeof(float)*ncomp
728                                                  : (size_t)(ncomp+1)) * xres*yres;
729                  int     npasses = (double)inp_bytes*cmtx->nrows /

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)