mirror of
https://github.com/golang/go.git
synced 2025-10-19 11:03:18 +00:00
time: remove redundant uint32 conversion in split
This commit is contained in:
parent
2363897932
commit
1ba8596e27
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