[PATCH v2 0/1] offset: optimized calculation of year from unix timestamp

Gary Gende gary@garygende.com
Fri Aug 29 08:03:47 GMT 2025


Resubmitting this patch after (hopefully) resolving the issues with the
prior submission.
(ref: https://patchwork.sourceware.org/project/glibc/list/?series=50569)

This patch now passes all make check tests with the exception of
elf/tst-shstk-legacy-1g, which always fails for me, both with and
without this patch, across several build settings, Linux distros,
glibc code versions, and may possibly be a kernel/hardware issue.
(ref: https://sourceware.org/bugzilla/show_bug.cgi?id=31877)

I've also created a BugZilla entry to track this patch.
(ref: https://sourceware.org/bugzilla/show_bug.cgi?id=33266)

The code is not changed, so the same performance benefits apply, but I have
completed more thorough testing, and I am submitting this patch with
git send-mail to address the email formatting issue that seemed to prevent
the prior submission from applying properly.


Gary Gende (1):
  offset: optimized calculation of year from unix timestamp

 time/offtime.c | 40 +++++++++++++++++++++++++++-------------
 1 file changed, 27 insertions(+), 13 deletions(-)

-- 
2.43.0



More information about the Libc-alpha mailing list