Lucene.Net.Util.FixedBitSet.AndNotCount C# (CSharp) Метод

AndNotCount() публичный статический Метод

Returns the popcount or cardinality of "a and not b" or "intersection(a, not(b))". Neither set is modified.
public static AndNotCount ( FixedBitSet a, FixedBitSet b ) : long
a FixedBitSet
b FixedBitSet
Результат long
        public static long AndNotCount(FixedBitSet a, FixedBitSet b)
        {
            long tot = BitUtil.Pop_andnot(a.bits, b.bits, 0, Math.Min(a.NumWords, b.NumWords));
            if (a.NumWords > b.NumWords)
            {
                tot += BitUtil.Pop_array(a.bits, b.NumWords, a.NumWords - b.NumWords);
            }
            return tot;
        }