Lines Matching refs:rhs
81 ByteVector* ByteVectorAnd(const ByteVector& lhs, ByteVector* rhs) {
82 DCHECK_EQ(lhs.size(), rhs->size());
84 (*rhs)[i] = lhs[i] & (*rhs)[i];
86 return rhs;
89 ByteVector* ByteVectorOr(const ByteVector& lhs, ByteVector* rhs) {
90 DCHECK_EQ(lhs.size(), rhs->size());
92 (*rhs)[i] = lhs[i] | (*rhs)[i];
94 return rhs;
99 ByteVector* rhs) {
100 DCHECK_EQ(lhs.size(), rhs->size());
102 (*rhs)[i] = (lhs[i] & ~mask[i]) | ((*rhs)[i] & mask[i]);
104 return rhs;