Lines Matching defs:getSmall
84 /// Get the stored value. For getSmall/Large,
86 LLVM_ATTRIBUTE_ALWAYS_INLINE int64_t getSmall() const {
88 "getSmall should only be called when the value stored is small!");
91 LLVM_ATTRIBUTE_ALWAYS_INLINE int64_t &getSmall() {
93 "getSmall should only be called when the value stored is small!");
109 return detail::SlowDynamicAPInt(getSmall());
143 return getSmall();
254 return getSmall() == O.getSmall();
260 return getSmall() != O.getSmall();
266 return getSmall() > O.getSmall();
272 return getSmall() < O.getSmall();
278 return getSmall() <= O.getSmall();
284 return getSmall() >= O.getSmall();
296 bool Overflow = AddOverflow(getSmall(), O.getSmall(), Result.getSmall());
309 bool Overflow = SubOverflow(getSmall(), O.getSmall(), Result.getSmall());
322 bool Overflow = MulOverflow(getSmall(), O.getSmall(), Result.getSmall());
337 return DynamicAPInt(getSmall() / O.getSmall());
346 if (LLVM_UNLIKELY(divideSignedWouldOverflow(getSmall(), O.getSmall())))
348 return DynamicAPInt(getSmall() / O.getSmall());
362 divideSignedWouldOverflow(LHS.getSmall(), RHS.getSmall())))
364 return DynamicAPInt(divideCeilSigned(LHS.getSmall(), RHS.getSmall()));
373 divideSignedWouldOverflow(LHS.getSmall(), RHS.getSmall())))
375 return DynamicAPInt(divideFloorSigned(LHS.getSmall(), RHS.getSmall()));
385 return DynamicAPInt(mod(LHS.getSmall(), RHS.getSmall()));
394 return DynamicAPInt(std::gcd(A.getSmall(), B.getSmall()));
411 return DynamicAPInt(getSmall() % O.getSmall());
418 if (LLVM_LIKELY(getSmall() != std::numeric_limits<int64_t>::min()))
419 return DynamicAPInt(-getSmall());
431 int64_t Result = getSmall();
432 bool Overflow = AddOverflow(getSmall(), O.getSmall(), Result);
434 getSmall() = Result;
448 int64_t Result = getSmall();
449 bool Overflow = SubOverflow(getSmall(), O.getSmall(), Result);
451 getSmall() = Result;
465 int64_t Result = getSmall();
466 bool Overflow = MulOverflow(getSmall(), O.getSmall(), Result);
468 getSmall() = Result;
483 if (LLVM_UNLIKELY(divideSignedWouldOverflow(getSmall(), O.getSmall())))
485 getSmall() /= O.getSmall();
497 getSmall() /= O.getSmall();
583 return A.getSmall() == B;
588 return A.getSmall() != B;
593 return A.getSmall() > B;
598 return A.getSmall() < B;
603 return A.getSmall() <= B;
608 return A.getSmall() >= B;
613 return A == B.getSmall();
618 return A != B.getSmall();
623 return A > B.getSmall();
628 return A < B.getSmall();
633 return A <= B.getSmall();
638 return A >= B.getSmall();