wide-integer
wide-integer copied to clipboard
Optimized squaring routine
Make an optimized squaring routine to multiply n*n.
Restrict this optimization at first to limb-ranges of school multiplication where O(n^2) complexity is expected to receive the greatest benefit.
Identify locations in the class and inline functions to detect automatically where x * x and x *= x are happenning. In this way, do not explicitly make a square()-ing method.