1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware/libc
Michael Sevakis 248bff5eb8 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
2017-02-03 14:40:55 -05:00
..
include Add normal alloca() definition and implement a strdupa and friends 2014-08-29 22:06:59 -04:00
atoi.c
ctype.c
errno.c Base scheduler queues off linked lists and do cleanup/consolidation 2014-08-16 05:15:37 -04:00
gmtime.c Improve code for gmtime_r() 2017-02-03 14:40:55 -05:00
memchr.c Renamed defines UNALIGNED to ROCKBOX_UNALIGNED - UNALIGNED is already 2017-01-15 21:32:49 +01:00
memcmp.c Renamed defines UNALIGNED to ROCKBOX_UNALIGNED - UNALIGNED is already 2017-01-15 21:32:49 +01:00
mktime.c mktime(): Remove redundant assignment of 'result' 2015-01-04 17:37:35 +01:00
qsort.c
random.c
sprintf.c
sscanf.c
strcat.c
strchr.c Renamed defines UNALIGNED to ROCKBOX_UNALIGNED - UNALIGNED is already 2017-01-15 21:32:49 +01:00
strcmp.c Renamed defines UNALIGNED to ROCKBOX_UNALIGNED - UNALIGNED is already 2017-01-15 21:32:49 +01:00
strcpy.c Renamed defines UNALIGNED to ROCKBOX_UNALIGNED - UNALIGNED is already 2017-01-15 21:32:49 +01:00
strncmp.c Renamed defines UNALIGNED to ROCKBOX_UNALIGNED - UNALIGNED is already 2017-01-15 21:32:49 +01:00
strrchr.c
strstr.c
strtok.c