Lines Matching refs:lhs

1178 		cpp_num lhs, cpp_num rhs, enum cpp_ttype op)
1180 lhs.overflow = false;
1181 lhs.unsignedp = lhs.unsignedp || rhs.unsignedp;
1187 lhs.low &= rhs.low;
1188 lhs.high &= rhs.high;
1192 lhs.low |= rhs.low;
1193 lhs.high |= rhs.high;
1197 lhs.low ^= rhs.low;
1198 lhs.high ^= rhs.high;
1201 return lhs;
1206 num_inequality_op (cpp_reader *pfile, cpp_num lhs, cpp_num rhs,
1209 bool gte = num_greater_eq (lhs, rhs, CPP_OPTION (pfile, precision));
1212 lhs.low = gte;
1214 lhs.low = !gte;
1216 lhs.low = gte && !num_eq (lhs, rhs);
1218 lhs.low = !gte || num_eq (lhs, rhs);
1220 lhs.high = 0;
1221 lhs.overflow = false;
1222 lhs.unsignedp = false;
1223 return lhs;
1229 cpp_num lhs, cpp_num rhs, enum cpp_ttype op)
1232 bool eq = num_eq (lhs, rhs);
1235 lhs.low = eq;
1236 lhs.high = 0;
1237 lhs.overflow = false;
1238 lhs.unsignedp = false;
1239 return lhs;
1360 num_binary_op (cpp_reader *pfile, cpp_num lhs, cpp_num rhs, enum cpp_ttype op)
1385 lhs = num_lshift (lhs, precision, n);
1387 lhs = num_rshift (lhs, precision, n);
1394 result.low = lhs.low + rhs.low;
1395 result.high = lhs.high + rhs.high;
1396 if (result.low < lhs.low)
1398 result.unsignedp = lhs.unsignedp || rhs.unsignedp;
1404 bool lhsp = num_positive (lhs, precision);
1416 lhs = rhs;
1420 return lhs;
1426 num_part_mul (cpp_num_part lhs, cpp_num_part rhs)
1431 result.low = LOW_PART (lhs) * LOW_PART (rhs);
1432 result.high = HIGH_PART (lhs) * HIGH_PART (rhs);
1434 middle[0] = LOW_PART (lhs) * HIGH_PART (rhs);
1435 middle[1] = HIGH_PART (lhs) * LOW_PART (rhs);
1457 num_mul (cpp_reader *pfile, cpp_num lhs, cpp_num rhs)
1460 bool unsignedp = lhs.unsignedp || rhs.unsignedp;
1467 if (!num_positive (lhs, precision))
1468 negate = !negate, lhs = num_negate (lhs, precision);
1473 overflow = lhs.high && rhs.high;
1474 result = num_part_mul (lhs.low, rhs.low);
1476 temp = num_part_mul (lhs.high, rhs.low);
1481 temp = num_part_mul (lhs.low, rhs.high);
1507 num_div_op (cpp_reader *pfile, cpp_num lhs, cpp_num rhs, enum cpp_ttype op)
1511 bool unsignedp = lhs.unsignedp || rhs.unsignedp;
1518 if (!num_positive (lhs, precision))
1519 negate = !negate, lhs_neg = true, lhs = num_negate (lhs, precision);
1548 return lhs;
1557 lhs.unsignedp = true;
1564 if (num_greater_eq (lhs, sub, precision))
1566 lhs = num_binary_op (pfile, lhs, sub, CPP_MINUS);
1595 lhs.unsignedp = unsignedp;
1596 lhs.overflow = false;
1598 lhs = num_negate (lhs, precision);
1600 return lhs;