From 8837bd4541a15ba0e7f257163ffe0b050b1d62b8 Mon Sep 17 00:00:00 2001 From: Kittycannon Date: Mon, 17 Aug 2026 21:42:58 -0600 Subject: [PATCH] working --- src/bigmath/chain/chain.cpp | 6 ++++++ src/bigmath/chain/chain.hpp | 6 +++--- src/bigmath/numbers/BigFloat.php | 0 src/bigmath/numbers/BigInt.php | 0 4 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 src/bigmath/numbers/BigFloat.php create mode 100644 src/bigmath/numbers/BigInt.php diff --git a/src/bigmath/chain/chain.cpp b/src/bigmath/chain/chain.cpp index 379a014..cf69f4a 100644 --- a/src/bigmath/chain/chain.cpp +++ b/src/bigmath/chain/chain.cpp @@ -230,4 +230,10 @@ namespace bigmath { while(shrink()) ; } + // ============================================================================ // + // MULTIPLICATION // + // ============================================================================ // + + chain chain::mul_long(const chain& c) const noexcept {} + } diff --git a/src/bigmath/chain/chain.hpp b/src/bigmath/chain/chain.hpp index 28cc5b1..1a6a296 100644 --- a/src/bigmath/chain/chain.hpp +++ b/src/bigmath/chain/chain.hpp @@ -61,11 +61,11 @@ namespace bigmath { void sub(const chain& c) noexcept; - void mul_long(const chain& c) noexcept; + chain mul_long(const chain& c) const noexcept; - void mul_(const chain& c) noexcept; + chain mul_karatsuba(const chain& c) const noexcept; - void mul_karatsuba(const chain& c) noexcept; + chain mul_tomcook3(const chain& c) const noexcept; public: diff --git a/src/bigmath/numbers/BigFloat.php b/src/bigmath/numbers/BigFloat.php new file mode 100644 index 0000000..e69de29 diff --git a/src/bigmath/numbers/BigInt.php b/src/bigmath/numbers/BigInt.php new file mode 100644 index 0000000..e69de29