Lines Matching defs:lhs

56 Scalar::Type Scalar::PromoteToMaxType(Scalar &lhs, Scalar &rhs) {
69 PromotionKey lhs_key = lhs.GetPromoKey();
73 Promote(rhs, lhs);
75 Promote(lhs, rhs);
78 if (lhs.GetPromoKey() == rhs.GetPromoKey())
79 return lhs.GetType(); // Return the resulting type
513 const Scalar lldb_private::operator+(const Scalar &lhs, const Scalar &rhs) {
514 Scalar result = lhs;
519 const Scalar lldb_private::operator-(Scalar lhs, Scalar rhs) {
521 if ((result.m_type = Scalar::PromoteToMaxType(lhs, rhs)) != Scalar::e_void) {
526 result.m_integer = lhs.m_integer - rhs.m_integer;
529 result.m_float = lhs.m_float - rhs.m_float;
536 const Scalar lldb_private::operator/(Scalar lhs, Scalar rhs) {
538 if ((result.m_type = Scalar::PromoteToMaxType(lhs, rhs)) != Scalar::e_void &&
544 result.m_integer = lhs.m_integer / rhs.m_integer;
547 result.m_float = lhs.m_float / rhs.m_float;
557 const Scalar lldb_private::operator*(Scalar lhs, Scalar rhs) {
559 if ((result.m_type = Scalar::PromoteToMaxType(lhs, rhs)) != Scalar::e_void) {
564 result.m_integer = lhs.m_integer * rhs.m_integer;
567 result.m_float = lhs.m_float * rhs.m_float;
574 const Scalar lldb_private::operator&(Scalar lhs, Scalar rhs) {
576 if ((result.m_type = Scalar::PromoteToMaxType(lhs, rhs)) != Scalar::e_void) {
578 result.m_integer = lhs.m_integer & rhs.m_integer;
585 const Scalar lldb_private::operator|(Scalar lhs, Scalar rhs) {
587 if ((result.m_type = Scalar::PromoteToMaxType(lhs, rhs)) != Scalar::e_void) {
589 result.m_integer = lhs.m_integer | rhs.m_integer;
596 const Scalar lldb_private::operator%(Scalar lhs, Scalar rhs) {
598 if ((result.m_type = Scalar::PromoteToMaxType(lhs, rhs)) != Scalar::e_void) {
600 result.m_integer = lhs.m_integer % rhs.m_integer;
608 const Scalar lldb_private::operator^(Scalar lhs, Scalar rhs) {
610 if ((result.m_type = Scalar::PromoteToMaxType(lhs, rhs)) != Scalar::e_void) {
612 result.m_integer = lhs.m_integer ^ rhs.m_integer;
619 const Scalar lldb_private::operator<<(const Scalar &lhs, const Scalar &rhs) {
620 Scalar result = lhs;
625 const Scalar lldb_private::operator>>(const Scalar &lhs, const Scalar &rhs) {
626 Scalar result = lhs;
856 bool lldb_private::operator==(Scalar lhs, Scalar rhs) {
858 if (lhs.m_type == Scalar::e_void || rhs.m_type == Scalar::e_void)
859 return lhs.m_type == rhs.m_type;
862 switch (Scalar::PromoteToMaxType(lhs, rhs)) {
866 return lhs.m_integer == rhs.m_integer;
868 result = lhs.m_float.compare(rhs.m_float);
875 bool lldb_private::operator!=(const Scalar &lhs, const Scalar &rhs) {
876 return !(lhs == rhs);
879 bool lldb_private::operator<(Scalar lhs, Scalar rhs) {
880 if (lhs.m_type == Scalar::e_void || rhs.m_type == Scalar::e_void)
884 switch (Scalar::PromoteToMaxType(lhs, rhs)) {
888 return lhs.m_integer < rhs.m_integer;
890 result = lhs.m_float.compare(rhs.m_float);
897 bool lldb_private::operator<=(const Scalar &lhs, const Scalar &rhs) {
898 return !(rhs < lhs);
901 bool lldb_private::operator>(const Scalar &lhs, const Scalar &rhs) {
902 return rhs < lhs;
905 bool lldb_private::operator>=(const Scalar &lhs, const Scalar &rhs) {
906 return !(lhs < rhs);