diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2017-01-25 19:34:13 -0500 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2017-02-03 14:40:55 -0500 |
commit | 248bff5eb8c56dc3c8b4ff2e47c05c7c09cd4849 (patch) | |
tree | 3956b2c20460816e25358985da3a3e45340ff8bb /utils/regtools/lib | |
parent | 4d4b0c5a07c907efda20771fa6baca6f1c91802e (diff) | |
download | rockbox-248bff5eb8c56dc3c8b4ff2e47c05c7c09cd4849.tar.gz rockbox-248bff5eb8c56dc3c8b4ff2e47c05c7c09cd4849.zip |
Improve code for gmtime_r()
Unlike the current code, it does no looping to count days or do
table lookups, which means running time doesn't increase with year
or month. A good thing if it's call a lot, especially if the
algorithm were asked to compute dates centuries or more from the
epoch start.
As a bonus, handles negative time values.
Change-Id: I198a23daf621e40623e6b44dacf2387078b4db9c
Diffstat (limited to 'utils/regtools/lib')
0 files changed, 0 insertions, 0 deletions