From: cxbdasheng Date: Thu, 24 Jul 2025 06:23:23 +0000 (+0000) Subject: time: remove redundant uint32 conversion in split X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0fa88dec1e23ceeef9f5719e0f9ccb94766e53e7;p=gostls13.git time: remove redundant uint32 conversion in split cd is a uint32 converted again. Change-Id: Ia41e247e0644c17cd9e0593d79457db77512fc3e GitHub-Last-Rev: 1ba8596e2761be75cc35f79e8245a96d6bb81096 GitHub-Pull-Request: golang/go#74679 Reviewed-on: https://go-review.googlesource.com/c/go/+/689055 Auto-Submit: Jorropo Reviewed-by: Michael Knyszek Reviewed-by: Keith Randall Reviewed-by: Jorropo LUCI-TryBot-Result: Go LUCI --- diff --git a/src/time/time.go b/src/time/time.go index bcaeee407e..cf9abc7196 100644 --- a/src/time/time.go +++ b/src/time/time.go @@ -667,7 +667,7 @@ func (days absDays) split() (century absCentury, cyear absCyear, ayday absYday) // so do that instead, saving a few cycles. // See Neri and Schneider, section 8.3 // for more about this optimization. - hi, lo := bits.Mul32(2939745, uint32(cd)) + hi, lo := bits.Mul32(2939745, cd) cyear = absCyear(hi) ayday = absYday(lo / 2939745 / 4) return