Lines Matching refs:lhs

1529                     cpp_num lhs, cpp_num rhs, enum cpp_ttype op)  in num_bitwise_op()  argument
1531 lhs.overflow = false; in num_bitwise_op()
1532 lhs.unsignedp = lhs.unsignedp || rhs.unsignedp; in num_bitwise_op()
1538 lhs.low &= rhs.low; in num_bitwise_op()
1539 lhs.high &= rhs.high; in num_bitwise_op()
1543 lhs.low |= rhs.low; in num_bitwise_op()
1544 lhs.high |= rhs.high; in num_bitwise_op()
1548 lhs.low ^= rhs.low; in num_bitwise_op()
1549 lhs.high ^= rhs.high; in num_bitwise_op()
1552 return lhs; in num_bitwise_op()
1557 num_inequality_op (cpp_reader *pfile, cpp_num lhs, cpp_num rhs, in num_inequality_op() argument
1560 bool gte = num_greater_eq (lhs, rhs, CPP_OPTION (pfile, precision)); in num_inequality_op()
1563 lhs.low = gte; in num_inequality_op()
1565 lhs.low = !gte; in num_inequality_op()
1567 lhs.low = gte && !num_eq (lhs, rhs); in num_inequality_op()
1569 lhs.low = !gte || num_eq (lhs, rhs); in num_inequality_op()
1571 lhs.high = 0; in num_inequality_op()
1572 lhs.overflow = false; in num_inequality_op()
1573 lhs.unsignedp = false; in num_inequality_op()
1574 return lhs; in num_inequality_op()
1580 cpp_num lhs, cpp_num rhs, enum cpp_ttype op) in num_equality_op() argument
1583 bool eq = num_eq (lhs, rhs); in num_equality_op()
1586 lhs.low = eq; in num_equality_op()
1587 lhs.high = 0; in num_equality_op()
1588 lhs.overflow = false; in num_equality_op()
1589 lhs.unsignedp = false; in num_equality_op()
1590 return lhs; in num_equality_op()
1711 num_binary_op (cpp_reader *pfile, cpp_num lhs, cpp_num rhs, enum cpp_ttype op) in num_binary_op() argument
1736 lhs = num_lshift (lhs, precision, n); in num_binary_op()
1738 lhs = num_rshift (lhs, precision, n); in num_binary_op()
1745 result.low = lhs.low + rhs.low; in num_binary_op()
1746 result.high = lhs.high + rhs.high; in num_binary_op()
1747 if (result.low < lhs.low) in num_binary_op()
1749 result.unsignedp = lhs.unsignedp || rhs.unsignedp; in num_binary_op()
1755 bool lhsp = num_positive (lhs, precision); in num_binary_op()
1767 lhs = rhs; in num_binary_op()
1771 return lhs; in num_binary_op()
1777 num_part_mul (cpp_num_part lhs, cpp_num_part rhs) in num_part_mul() argument
1782 result.low = LOW_PART (lhs) * LOW_PART (rhs); in num_part_mul()
1783 result.high = HIGH_PART (lhs) * HIGH_PART (rhs); in num_part_mul()
1785 middle[0] = LOW_PART (lhs) * HIGH_PART (rhs); in num_part_mul()
1786 middle[1] = HIGH_PART (lhs) * LOW_PART (rhs); in num_part_mul()
1808 num_mul (cpp_reader *pfile, cpp_num lhs, cpp_num rhs) in num_mul() argument
1811 bool unsignedp = lhs.unsignedp || rhs.unsignedp; in num_mul()
1818 if (!num_positive (lhs, precision)) in num_mul()
1819 negate = !negate, lhs = num_negate (lhs, precision); in num_mul()
1824 overflow = lhs.high && rhs.high; in num_mul()
1825 result = num_part_mul (lhs.low, rhs.low); in num_mul()
1827 temp = num_part_mul (lhs.high, rhs.low); in num_mul()
1832 temp = num_part_mul (lhs.low, rhs.high); in num_mul()
1860 num_div_op (cpp_reader *pfile, cpp_num lhs, cpp_num rhs, enum cpp_ttype op, in num_div_op() argument
1865 bool unsignedp = lhs.unsignedp || rhs.unsignedp; in num_div_op()
1872 if (!num_positive (lhs, precision)) in num_div_op()
1873 negate = !negate, lhs_neg = true, lhs = num_negate (lhs, precision); in num_div_op()
1903 return lhs; in num_div_op()
1912 lhs.unsignedp = true; in num_div_op()
1919 if (num_greater_eq (lhs, sub, precision)) in num_div_op()
1921 lhs = num_binary_op (pfile, lhs, sub, CPP_MINUS); in num_div_op()
1950 lhs.unsignedp = unsignedp; in num_div_op()
1951 lhs.overflow = false; in num_div_op()
1953 lhs = num_negate (lhs, precision); in num_div_op()
1955 return lhs; in num_div_op()