24 explicit
BigInteger(std::string_view str,
int base = 10);
56 std::vector<uint32_t> digits_;
58 BigInteger(
int sign, std::vector<uint32_t> digits);
92 return value.hashCode();
98 constexpr auto parse(std::format_parse_context &ctx) {
102 template <
typename FormatContext>
104 return std::format(ctx.out(),
"{}", value.
toString());
#define MINI_LLVM_EXPORT
Definition Compiler.h:17
Definition BigInteger.h:20
friend MINI_LLVM_EXPORT BigInteger abs(const BigInteger &value)
friend MINI_LLVM_EXPORT int32_t operator%(const BigInteger &lhs, int32_t rhs)
std::string toString(int base=10) const
friend MINI_LLVM_EXPORT std::pair< BigInteger, int32_t > divRem(const BigInteger &lhs, int32_t rhs)
friend MINI_LLVM_EXPORT BigInteger abs(BigInteger &&value)
friend MINI_LLVM_EXPORT BigInteger operator+(const BigInteger &lhs, const BigInteger &rhs)
static std::optional< BigInteger > parse(std::string_view str, int base=10)
friend MINI_LLVM_EXPORT std::strong_ordering operator<=>(const BigInteger &lhs, const BigInteger &rhs) noexcept
friend MINI_LLVM_EXPORT BigInteger operator-(const BigInteger &lhs, const BigInteger &rhs)
friend MINI_LLVM_EXPORT bool operator==(const BigInteger &lhs, const BigInteger &rhs) noexcept
size_t hashCode() const noexcept
int64_t toInt64() const noexcept
friend MINI_LLVM_EXPORT BigInteger operator/(const BigInteger &lhs, int32_t rhs)
friend MINI_LLVM_EXPORT BigInteger operator*(const BigInteger &lhs, const BigInteger &rhs)
Definition GraphColoringAllocator.h:13
MINI_LLVM_EXPORT BigInteger operator*(const BigInteger &lhs, const BigInteger &rhs)
MINI_LLVM_EXPORT BigInteger operator/(const BigInteger &lhs, int32_t rhs)
MINI_LLVM_EXPORT BigInteger abs(const BigInteger &value)
MINI_LLVM_EXPORT int32_t operator%(const BigInteger &lhs, int32_t rhs)
MINI_LLVM_EXPORT std::pair< BigInteger, int32_t > divRem(const BigInteger &lhs, int32_t rhs)
MINI_LLVM_EXPORT bool operator==(const BigInteger &lhs, const BigInteger &rhs) noexcept
MINI_LLVM_EXPORT BigInteger operator-(const BigInteger &lhs, const BigInteger &rhs)
MINI_LLVM_EXPORT BigInteger operator+(const BigInteger &lhs, const BigInteger &rhs)
MINI_LLVM_EXPORT std::strong_ordering operator<=>(const BigInteger &lhs, const BigInteger &rhs) noexcept
size_t operator()(const mini_llvm::BigInteger &value) const noexcept
Definition BigInteger.h:91