Re: [PATCH v2 2/4] time: shorten year determination loop

Roger Pau MonnĂ© <[email protected]> Tue, 28 Jul 2026 17:02:54 +0200
Newsgroups gmane.comp.emulators.xen.devel
Message-ID <[email protected]>
On Thu, Jul 02, 2026 at 11:30:11AM +0200, Jan Beulich wrote:
> For dates very far into the future (the MC146818 RTC's century byte can go
> up to the 99th century), the present year-wise loop would become somewhat
> inefficient (taking perhaps several thousand iterations). Prefix that loop
> with a 400-year granular calculation (somewhat like the earlier loop does
> for dates in the past).
> 
> Signed-off-by: Jan Beulich <[email protected]>

Acked-by: Roger Pau MonnĂ© <[email protected]>

Thanks, Roger.