MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / operator &

Method operator &

Tools/BitVector.cpp:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42BitVector BitVector::operator &(const BitVector& other) const
43{
44 assert(size() == other.size());
45 BitVector res(size());
46 for (size_t i = 0; i < size_bytes(); i++)
47 res.bytes[i] = bytes[i] & other.bytes[i];
48 return res;
49}
50
51bool BitVector::parity() const
52{

Callers

nothing calls this directly

Calls 2

sizeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected