math/gfreduce.c: Refactor and document.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 9 Aug 2013 09:30:48 +0000 (10:30 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 9 Aug 2013 12:51:04 +0000 (13:51 +0100)
commit51f5bbe0bfe8a344c3cc1f5a9fddf885fa75d057
treecbc02613ea10b48b2c80c60756cd65e3ca768ced
parent12208248afbfcdedac9494a68ab83f203335c1a3
math/gfreduce.c: Refactor and document.

There was an unfortunate amount of code duplication in the old code,
particularly around the issuing of LSR instruction sequences.  Gather
the relevant state into a structure, and split the repeated code into
separate functions.

Also add a bunch of commentary explaining the underlying theory.
math/gfreduce.c
math/t/gfreduce