ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/gclib/GBitVec.h
(Generate patch)
# Line 332 | Line 332
332    bool operator==(const GBitVec &RHS) const {
333      uint ThisWords = NumBitWords(size());
334      uint RHSWords  = NumBitWords(RHS.size());
335 <    uint i;
336 <    for (i = 0; i != GMIN(ThisWords, RHSWords); ++i)
335 >    register uint i;
336 >    uint imax=GMIN(ThisWords, RHSWords);
337 >    for (i = 0; i != imax; ++i)
338        if (fBits[i] != RHS.fBits[i])
339          return false;
340  
# Line 358 | Line 359
359    GBitVec &operator&=(const GBitVec &RHS) {
360      uint ThisWords = NumBitWords(size());
361      uint RHSWords  = NumBitWords(RHS.size());
362 <    uint i;
363 <    for (i = 0; i != GMIN(ThisWords, RHSWords); ++i)
362 >    register uint i;
363 >    uint imax=GMIN(ThisWords, RHSWords);
364 >    for (i = 0; i != imax; ++i)
365        fBits[i] &= RHS.fBits[i];
366  
367      // Any bits that are just in this GBitVec become zero, because they aren't

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines