<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rockbox/firmware/libc/gmtime.c, branch wolf3d</title>
<subtitle>My Rockbox tree</subtitle>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/'/>
<entry>
<title>Improve code for gmtime_r()</title>
<updated>2017-02-03T19:40:55+00:00</updated>
<author>
<name>Michael Sevakis</name>
<email>jethead71@rockbox.org</email>
</author>
<published>2017-01-26T00:34:13+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=248bff5eb8c56dc3c8b4ff2e47c05c7c09cd4849'/>
<id>248bff5eb8c56dc3c8b4ff2e47c05c7c09cd4849</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>Move intrinsic RTC implmentation differences to driver files</title>
<updated>2017-01-27T04:07:49+00:00</updated>
<author>
<name>Michael Sevakis</name>
<email>jethead71@rockbox.org</email>
</author>
<published>2017-01-26T00:32:15+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=58b849c451ac1281c14bfc535ab7f411a0b736e0'/>
<id>58b849c451ac1281c14bfc535ab7f411a0b736e0</id>
<content type='text'>
Some drivers set tm_wday just fine and do not need it coerced to
be correct. Others set tm_yday, so don't overwrite what the driver
sets; just zero it inside if it can't fill the field. Move calls
to set_day_of_week() to the sorts of drivers that presumably
required the hammer (FS#11814) in get_time() where the weekday
isn't locked to the date.

Change-Id: Idd0ded6bfc9d9f48fcc1a6074068164c42fcf24a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some drivers set tm_wday just fine and do not need it coerced to
be correct. Others set tm_yday, so don't overwrite what the driver
sets; just zero it inside if it can't fill the field. Move calls
to set_day_of_week() to the sorts of drivers that presumably
required the hammer (FS#11814) in get_time() where the weekday
isn't locked to the date.

Change-Id: Idd0ded6bfc9d9f48fcc1a6074068164c42fcf24a
</pre>
</div>
</content>
</entry>
<entry>
<title>gmtime: avoid a modulus</title>
<updated>2012-03-18T09:09:08+00:00</updated>
<author>
<name>Rafaël Carré</name>
<email>funman@videolan.org</email>
</author>
<published>2012-03-11T21:20:35+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=24bd9d5393dbe39a5c6194877bc00ede669b1d5d'/>
<id>24bd9d5393dbe39a5c6194877bc00ede669b1d5d</id>
<content type='text'>
since WEEK_SECONDS = 7 * DAY_SECONDS, the result is the same

Change-Id: Iec161fc2de626c99c1aabf80ab1d3243eac602d9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
since WEEK_SECONDS = 7 * DAY_SECONDS, the result is the same

Change-Id: Iec161fc2de626c99c1aabf80ab1d3243eac602d9
</pre>
</div>
</content>
</entry>
<entry>
<title>fix year calculation in gmtime</title>
<updated>2012-03-12T07:50:10+00:00</updated>
<author>
<name>Bertrik Sikken</name>
<email>bertrik@sikken.nl</email>
</author>
<published>2012-03-12T07:50:10+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=16a95618de709caeca45a34f2649d6cfd6a66d5f'/>
<id>16a95618de709caeca45a34f2649d6cfd6a66d5f</id>
<content type='text'>
Change-Id: I9a5f29ad73b5620096d38874c70351db9bd90062
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I9a5f29ad73b5620096d38874c70351db9bd90062
</pre>
</div>
</content>
</entry>
<entry>
<title>gmtime: reduce array size: days in month fit in 8 bits</title>
<updated>2012-03-11T21:19:48+00:00</updated>
<author>
<name>Rafaël Carré</name>
<email>funman@videolan.org</email>
</author>
<published>2012-03-11T21:15:56+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=d2aafd19e4fbe0ef8ec053e59085bcac85e64491'/>
<id>d2aafd19e4fbe0ef8ec053e59085bcac85e64491</id>
<content type='text'>
Change-Id: Idcebdf0ae120cfc82a1f471d0553d23ca36d7eef
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Idcebdf0ae120cfc82a1f471d0553d23ca36d7eef
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce gmtime.c and use it in the AS3514 RTC driver</title>
<updated>2012-03-11T21:10:54+00:00</updated>
<author>
<name>Bertrik Sikken</name>
<email>bertrik@sikken.nl</email>
</author>
<published>2012-03-08T20:21:31+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=727e8aa6817be8816bc32184f2e2eb36b90b4a9e'/>
<id>727e8aa6817be8816bc32184f2e2eb36b90b4a9e</id>
<content type='text'>
Change-Id: I00a09ae28a68f8153fb8fa854fea741ddfb0bf09
Reviewed-on: http://gerrit.rockbox.org/175
Tested-by: Bertrik Sikken &lt;bertrik@sikken.nl&gt;
Reviewed-by: Michael Sevakis &lt;jethead71@rockbox.org&gt;
Reviewed-by: Rafaël Carré &lt;rafael.carre@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I00a09ae28a68f8153fb8fa854fea741ddfb0bf09
Reviewed-on: http://gerrit.rockbox.org/175
Tested-by: Bertrik Sikken &lt;bertrik@sikken.nl&gt;
Reviewed-by: Michael Sevakis &lt;jethead71@rockbox.org&gt;
Reviewed-by: Rafaël Carré &lt;rafael.carre@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
