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

Comparing ray/src/common/malloc.c (file contents):
Revision 2.3 by greg, Fri Feb 7 15:10:32 1992 UTC vs.
Revision 2.4 by greg, Sat Feb 8 13:16:01 1992 UTC

# Line 239 | Line 239 | register unsigned  n;
239   #ifdef MSTATS
240                  b_nsbrked += nrem;
241   #endif
242 <                thisamnt = BYTES_WORD - ((unsigned)bpos&(BYTES_WORD-1));
243 <                if (thisamnt < BYTES_WORD) {            /* align pointer */
244 <                        bpos += thisamnt;
245 <                        nrem -= thisamnt;
246 <                }
242 >                bpos += nrem & (BYTES_WORD-1);          /* align pointer */
243 >                nrem &= ~(BYTES_WORD-1);
244          }
245  
246          n = (n+(BYTES_WORD-1))&~(BYTES_WORD-1);         /* word align rqst. */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines