mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
time: remove redundant uint32 conversion in split
cd is a uint32 converted again.
Change-Id: Ia41e247e0644c17cd9e0593d79457db77512fc3e
GitHub-Last-Rev: 1ba8596e27
GitHub-Pull-Request: golang/go#74679
Reviewed-on: https://go-review.googlesource.com/c/go/+/689055
Auto-Submit: Jorropo <jorropo.pgm@gmail.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
ada30b8248
commit
0fa88dec1e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue