From: Emmanuel T Odeke Date: Mon, 10 Sep 2018 07:05:09 +0000 (-0600) Subject: runtime: convert initial timediv quotient increments to bitsets X-Git-Tag: go1.12beta1~1109 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=178a609fed5fba5abaeead485f7b2795b8c4ea3c;p=gostls13.git runtime: convert initial timediv quotient increments to bitsets At the very beginning of timediv, inside a for loop, we reduce the base value by at most (1<<31)-1, while incrementing the quotient result by 1< TryBot-Result: Gobot Gobot Reviewed-by: Keith Randall --- diff --git a/src/runtime/runtime1.go b/src/runtime/runtime1.go index d5f78baded..85a9ba2521 100644 --- a/src/runtime/runtime1.go +++ b/src/runtime/runtime1.go @@ -416,7 +416,9 @@ func timediv(v int64, div int32, rem *int32) int32 { for bit := 30; bit >= 0; bit-- { if v >= int64(div)<= int64(div) {