Descriptioncmd/6g, cmd/8g: simplify integer division code.
Change suggested by iant. The compiler generates
special code for a/b when a is -0x80...0 and b = -1.
A single instruction can cover the case where b is -1,
so only one comparison is needed.
Fixes issue 3551.
Patch Set 1 #Patch Set 2 : diff -r ec3ae5b98922 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r ec3ae5b98922 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r ec3ae5b98922 https://go.googlecode.com/hg/ #
MessagesTotal messages: 3
|