time: remove redundant uint32 conversion in split

This commit is contained in:
cxbdasheng 2025-07-20 23:54:49 +08:00
parent 2363897932
commit 1ba8596e27

View file

@ -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