Lines Matching refs:rhs
77 /* Set *THIS to the bitwise OR of *THIS and RHS. */
78 nowarn_spec_t& operator|= (const nowarn_spec_t &rhs)
80 m_bits |= rhs.m_bits;
84 /* Set *THIS to the bitwise AND of *THIS and RHS. */
85 nowarn_spec_t& operator&= (const nowarn_spec_t &rhs)
87 m_bits &= rhs.m_bits;
91 /* Set *THIS to the bitwise exclusive OR of *THIS and RHS. */
92 nowarn_spec_t& operator^= (const nowarn_spec_t &rhs)
94 m_bits ^= rhs.m_bits;
103 /* Return the bitwise OR of LHS and RHS. */
106 operator| (const nowarn_spec_t &lhs, const nowarn_spec_t &rhs)
108 return nowarn_spec_t (lhs) |= rhs;
111 /* Return the bitwise AND of LHS and RHS. */
114 operator& (const nowarn_spec_t &lhs, const nowarn_spec_t &rhs)
116 return nowarn_spec_t (lhs) &= rhs;
119 /* Return true if LHS is equal RHS. */
122 operator== (const nowarn_spec_t &lhs, const nowarn_spec_t &rhs)
124 return static_cast<unsigned>(lhs) == static_cast<unsigned>(rhs);
127 /* Return true if LHS is not equal RHS. */
130 operator!= (const nowarn_spec_t &lhs, const nowarn_spec_t &rhs)
132 return !(lhs == rhs);