LLVM: lib/Support/SlowDynamicAPInt.cpp File Reference (original) (raw)
Go to the source code of this file.
◆ getMaxWidth()
Definition at line 117 of file SlowDynamicAPInt.cpp.
Referenced by llvm::detail::ceilDiv(), llvm::detail::floorDiv(), llvm::detail::gcd(), llvm::detail::SlowDynamicAPInt::operator!=(), llvm::detail::SlowDynamicAPInt::operator<(), llvm::detail::SlowDynamicAPInt::operator<=(), llvm::detail::SlowDynamicAPInt::operator==(), llvm::detail::SlowDynamicAPInt::operator>(), llvm::detail::SlowDynamicAPInt::operator>=(), and runOpWithExpandOnOverflow().
◆ runOpWithExpandOnOverflow()
Bring a and b to have the same width and then call op(a, b, overflow).
Arithmetic operators.
If the overflow bit becomes set, resize a and b to double the width and call op(a, b, overflow), returning its result. The operation with double widths should not also overflow.
Definition at line 159 of file SlowDynamicAPInt.cpp.
References A(), assert(), B(), and getMaxWidth().
Referenced by llvm::detail::SlowDynamicAPInt::operator*(), llvm::detail::SlowDynamicAPInt::operator+(), llvm::detail::SlowDynamicAPInt::operator-(), and llvm::detail::SlowDynamicAPInt::operator/().