From ad38f957415b93a0bf6093b7b3d7fb98c7644387 Mon Sep 17 00:00:00 2001 From: Nicholas Ward Date: Wed, 15 Mar 2023 13:45:55 -0700 Subject: [PATCH] TODO for possible future mul optimization --- evm/src/cpu/kernel/asm/bignum/mul.asm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/evm/src/cpu/kernel/asm/bignum/mul.asm b/evm/src/cpu/kernel/asm/bignum/mul.asm index a7d19fb5..8317fdbc 100644 --- a/evm/src/cpu/kernel/asm/bignum/mul.asm +++ b/evm/src/cpu/kernel/asm/bignum/mul.asm @@ -4,6 +4,8 @@ // Stores a * b in output_loc, leaving a and b unchanged. // Both a and b have length len; a * b will have length 2 * len. // output_loc must be initialized as 2 * len zeroes. +// TODO: possible optimization: allow output_loc to be uninitialized, and write over it with a[0:len] * b[0] (a multiplication +// with carry) in place of the first addmul. global mul_bignum: // stack: len, a_start_loc, b_start_loc, output_loc, retdest DUP1