algorithmica
algorithmica copied to clipboard
ASM code listing in Barrett reduction section computes x div m, not x mod m. In order to compute x mod m, we also need to perform multiplication by 1000000007 and then subtraction
This pull request has been automatically generated by prose.io.