Lines Matching defs:rhs
125 bool operator==(const PackedSockAddr& rhs) const
127 if (&rhs == this)
129 if (_port != rhs._port)
131 return memcmp(_sin6, rhs._sin6, sizeof(_sin6)) == 0;
133 bool operator!=(const PackedSockAddr& rhs) const { return !(*this == rhs); }
387 // compare if lhs is less than rhs, taking wrapping
388 // into account. if lhs is close to UINT_MAX and rhs
391 bool wrapping_compare_less(uint32 lhs, uint32 rhs)
393 // distance walking from lhs to rhs, downwards
394 const uint32 dist_down = lhs - rhs;
395 // distance walking from lhs to rhs, upwards
396 const uint32 dist_up = rhs - lhs;
399 // is less than rhs. If the distance walking down
400 // is shorter, then rhs is less than lhs