| 662 | } |
| 663 | |
| 664 | bool HasAll(const TThis& bitmap) const { |
| 665 | for (size_t i = 0; i < Min(Mask.GetChunkCapacity(), bitmap.Mask.GetChunkCapacity()); ++i) { |
| 666 | if (bitmap.Mask.Data[i] != (Mask.Data[i] & bitmap.Mask.Data[i])) { |
| 667 | return false; |
| 668 | } |
| 669 | } |
| 670 | for (size_t i = Mask.GetChunkCapacity(); i < bitmap.Mask.GetChunkCapacity(); ++i) { |
| 671 | if (bitmap.Mask.Data[i] != 0) { |
| 672 | return false; |
| 673 | } |
| 674 | } |
| 675 | return true; |
| 676 | } |
| 677 | |
| 678 | template <class T> |
| 679 | Y_FORCE_INLINE bool HasAll(const TBitMapOps<T>& bitmap) const { |
nothing calls this directly
no test coverage detected