From: Mark Wooding Date: Tue, 26 Jul 2022 10:21:12 +0000 (+0100) Subject: symm/chacha-x86ish-sse2.S: Fix mathematical errors in commentary. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/a94f003dddb352c50c224e8143e30da63ef2e158 symm/chacha-x86ish-sse2.S: Fix mathematical errors in commentary. The commentary proving the correctness for the general solution of `gfreduce_quadsolve' was wrong in a number of details that somehow managed to cancel out. The claim is correct, and now the proof has been fixed, with somewhat expanded calculations making the tricks easier to notice. --- diff --git a/math/gfreduce.c b/math/gfreduce.c index 99f3bea5..f29c1048 100644 --- a/math/gfreduce.c +++ b/math/gfreduce.c @@ -554,12 +554,16 @@ mp *gfreduce_quadsolve(const gfreduce *r, mp *d, mp *x) * * Choose %$\rho \inr \gf{2^m}$% with %$\Tr(\rho) = 1$%. Let * %$z = \sum_{0\le i