libs/gen/src/genMask.cxx
//
// Determine if the set is not equal to another set.
//
Determine if the set is not equal to another set.
Determine if the set is not equal to another set .
int genMask::operator != (const genMask& other) const
{
    const genMask* little;
    const genMask* big;
    if (_words < other._words) {
	little = this;
	big = &other;
    }
    else {
	little = &other;
	big = this;
    }
    unsigned i;
    for (i = 0; i < little->_words; i++)
	if (little->_mask[i] != big->_mask[i])
	    return 1;
    for (; i < big->_words; i++)
	if (big->_mask[i] != 0)
	    return 1;
    return 0;
}
int genMask :: operator != ( const genMask & other ) const { const genMask * little ; const genMask * big ; if ( _words < other . _words ) { little = this ; big = & other ; } else { little = & other ; big = this ; } unsigned i ; for ( i = 0 ; i < little -> _words ; i ++ ) if ( little -> _mask [ i ] != big -> _mask [ i ] ) return 1 ; for ( ; i < big -> _words ; i ++ ) if ( big -> _mask [ i ] != 0 ) return 1 ; return 0 ; }
Determine if the set is not equal to another set.
Determine if the set is not equal to another set .