MCPcopy Create free account
hub / github.com/catboost/catboost / HasAll

Method HasAll

util/generic/bitmap.h:664–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

MinFunction · 0.70
GetChunkCapacityMethod · 0.45

Tested by

no test coverage detected