Home | History | Annotate | Download | only in numerics

Lines Matching refs:checked_dst

129   CheckedNumeric<Dst> checked_dst = 1;
130 TEST_EXPECTED_VALUE(0, checked_dst %= 1);
169 CheckedNumeric<Dst> checked_dst = 1;
170 TEST_EXPECTED_VALUE(0, checked_dst %= 1);
236 CheckedNumeric<Dst> checked_dst = 1;
237 TEST_EXPECTED_VALUE(2, checked_dst += 1);
238 checked_dst = 1;
239 TEST_EXPECTED_VALUE(0, checked_dst -= 1);
240 checked_dst = 1;
241 TEST_EXPECTED_VALUE(1, checked_dst *= 1);
242 checked_dst = 1;
243 TEST_EXPECTED_VALUE(1, checked_dst /= 1);
352 const CheckedNumeric<Dst> checked_dst = SrcLimits::max();
353 TEST_EXPECTED_VALIDITY(RANGE_VALID, checked_dst);
357 TEST_EXPECTED_VALIDITY(RANGE_VALID, SrcLimits::max() * checked_dst);
360 TEST_EXPECTED_VALIDITY(RANGE_OVERFLOW, SrcLimits::max() * checked_dst);
361 TEST_EXPECTED_VALIDITY(RANGE_VALID, checked_dst + 1);
364 TEST_EXPECTED_VALIDITY(RANGE_OVERFLOW, checked_dst + 1);
392 const CheckedNumeric<Dst> checked_dst;
393 checked_dst + SrcLimits::max());
394 TEST_EXPECTED_VALUE(1, checked_dst + static_cast<Src>(1));
395 TEST_EXPECTED_VALIDITY(RANGE_UNDERFLOW, checked_dst - SrcLimits::max());
418 TEST_EXPECTED_VALUE(-1, checked_dst - static_cast<Src>(1));
422 TEST_EXPECTED_VALIDITY(RANGE_INVALID, checked_dst - static_cast<Src>(1));
438 const CheckedNumeric<Dst> checked_dst;
439 TEST_EXPECTED_VALUE(SrcLimits::max(), checked_dst + SrcLimits::max());
440 TEST_EXPECTED_VALIDITY(RANGE_UNDERFLOW, checked_dst + static_cast<Src>(-1));
441 TEST_EXPECTED_VALIDITY(RANGE_UNDERFLOW, checked_dst + -SrcLimits::max());
461 const CheckedNumeric<Dst> checked_dst;
462 TEST_EXPECTED_VALUE(1, checked_dst + static_cast<Src>(1));
463 TEST_EXPECTED_VALIDITY(RANGE_OVERFLOW, checked_dst + SrcLimits::max());
464 TEST_EXPECTED_VALIDITY(RANGE_UNDERFLOW, checked_dst + static_cast<Src>(-1));
465 TEST_EXPECTED_VALIDITY(RANGE_UNDERFLOW, checked_dst + -SrcLimits::max());
503 const CheckedNumeric<Dst> checked_dst;
504 TEST_EXPECTED_VALUE(1, checked_dst + static_cast<Src>(1));
505 TEST_EXPECTED_VALIDITY(RANGE_OVERFLOW, checked_dst + SrcLimits::max());
506 TEST_EXPECTED_VALUE(SrcLimits::min(), checked_dst + SrcLimits::min());