segment with ops and mul_long. Should be easier to work from then on.

This commit is contained in:
2026-08-18 00:29:18 -06:00
parent 61b97dd203
commit d678a38ad4
18 changed files with 565 additions and 228 deletions
+4
View File
@@ -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;