segment with ops and mul_long. Should be easier to work from then on.
This commit is contained in:
@@ -23,6 +23,8 @@ namespace bigmath {
|
||||
|
||||
segment(u64 n);
|
||||
|
||||
segment(std::string_view str);
|
||||
|
||||
segment(const segment& s);
|
||||
|
||||
~segment();
|
||||
@@ -37,6 +39,8 @@ namespace bigmath {
|
||||
|
||||
u8 sub(const segment& s, u8 borrow);
|
||||
|
||||
std::array<segment, 2> mul_long(const segment& s) const;
|
||||
|
||||
i8 compare(const segment& s) const;
|
||||
|
||||
bool isZero() const noexcept;
|
||||
|
||||
Reference in New Issue
Block a user