Descriptionmath/big: math.Exp should return result >= 0 for |m| > 0
The documentation states that Exp(x, y, m)
computes x**y mod |m| for m != nil && m > 0.
In math.big, Mod is the Euclidean modulus,
which is always >= 0.
Fixes issue 8822.
Patch Set 1 #Patch Set 2 : diff -r 07bb65448c694d51ce8bba4b09102c8c04ece2e8 https://code.google.com/p/go/ #Patch Set 3 : diff -r 07bb65448c694d51ce8bba4b09102c8c04ece2e8 https://code.google.com/p/go/ #
Total comments: 2
Patch Set 4 : diff -r 61525d46311930992512297749c1ad914912041b https://code.google.com/p/go/ #
Total comments: 4
Patch Set 5 : diff -r c361cbe8f03c802d2d1054f21447cc865dcb6d68 https://code.google.com/p/go/ #Patch Set 6 : diff -r c361cbe8f03c802d2d1054f21447cc865dcb6d68 https://code.google.com/p/go/ #MessagesTotal messages: 9
|