Lines Matching refs:lhs

1175 		cpp_num lhs, cpp_num rhs, enum cpp_ttype op)
1177 lhs.overflow = false;
1178 lhs.unsignedp = lhs.unsignedp || rhs.unsignedp;
1184 lhs.low &= rhs.low;
1185 lhs.high &= rhs.high;
1189 lhs.low |= rhs.low;
1190 lhs.high |= rhs.high;
1194 lhs.low ^= rhs.low;
1195 lhs.high ^= rhs.high;
1198 return lhs;
1203 num_inequality_op (cpp_reader *pfile, cpp_num lhs, cpp_num rhs,
1206 bool gte = num_greater_eq (lhs, rhs, CPP_OPTION (pfile, precision));
1209 lhs.low = gte;
1211 lhs.low = !gte;
1213 lhs.low = gte && !num_eq (lhs, rhs);
1215 lhs.low = !gte || num_eq (lhs, rhs);
1217 lhs.high = 0;
1218 lhs.overflow = false;
1219 lhs.unsignedp = false;
1220 return lhs;
1226 cpp_num lhs, cpp_num rhs, enum cpp_ttype op)
1229 bool eq = num_eq (lhs, rhs);
1232 lhs.low = eq;
1233 lhs.high = 0;
1234 lhs.overflow = false;
1235 lhs.unsignedp = false;
1236 return lhs;
1357 num_binary_op (cpp_reader *pfile, cpp_num lhs, cpp_num rhs, enum cpp_ttype op)
1382 lhs = num_lshift (lhs, precision, n);
1384 lhs = num_rshift (lhs, precision, n);
1391 result.low = lhs.low + rhs.low;
1392 result.high = lhs.high + rhs.high;
1393 if (result.low < lhs.low)
1395 result.unsignedp = lhs.unsignedp || rhs.unsignedp;
1401 bool lhsp = num_positive (lhs, precision);
1413 lhs = rhs;
1417 return lhs;
1423 num_part_mul (cpp_num_part lhs, cpp_num_part rhs)
1428 result.low = LOW_PART (lhs) * LOW_PART (rhs);
1429 result.high = HIGH_PART (lhs) * HIGH_PART (rhs);
1431 middle[0] = LOW_PART (lhs) * HIGH_PART (rhs);
1432 middle[1] = HIGH_PART (lhs) * LOW_PART (rhs);
1454 num_mul (cpp_reader *pfile, cpp_num lhs, cpp_num rhs)
1457 bool unsignedp = lhs.unsignedp || rhs.unsignedp;
1464 if (!num_positive (lhs, precision))
1465 negate = !negate, lhs = num_negate (lhs, precision);
1470 overflow = lhs.high && rhs.high;
1471 result = num_part_mul (lhs.low, rhs.low);
1473 temp = num_part_mul (lhs.high, rhs.low);
1478 temp = num_part_mul (lhs.low, rhs.high);
1504 num_div_op (cpp_reader *pfile, cpp_num lhs, cpp_num rhs, enum cpp_ttype op)
1508 bool unsignedp = lhs.unsignedp || rhs.unsignedp;
1515 if (!num_positive (lhs, precision))
1516 negate = !negate, lhs_neg = true, lhs = num_negate (lhs, precision);
1545 return lhs;
1554 lhs.unsignedp = true;
1561 if (num_greater_eq (lhs, sub, precision))
1563 lhs = num_binary_op (pfile, lhs, sub, CPP_MINUS);
1591 lhs.unsignedp = unsignedp;
1592 lhs.overflow = false;
1594 lhs = num_negate (lhs, precision);
1596 return lhs;