some other

This commit is contained in:
2026-08-18 00:38:30 -06:00
parent d678a38ad4
commit 7692c04057
+14
View File
@@ -35,12 +35,26 @@ namespace bigmath {
void set(u8 i, u8 n); void set(u8 i, u8 n);
segment extract(u8 from, u8 to, u8 offset) const;
void shift_right(u8 places);
void shift_left(u8 places);
u8 add(const segment& s, u8 carry); u8 add(const segment& s, u8 carry);
u8 sub(const segment& s, u8 borrow); u8 sub(const segment& s, u8 borrow);
std::array<segment, 2> mul_long(const segment& s) const; std::array<segment, 2> mul_long(const segment& s) const;
std::array<segment, 2> mul_karatsuba(const segment& s) const;
div_result<segment> div_long(const segment& s) const;
segment div_newtonraphson(const segment& s) const;
segment mod_long(const segment& s) const;
i8 compare(const segment& s) const; i8 compare(const segment& s) const;
bool isZero() const noexcept; bool isZero() const noexcept;