rockbox/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 format() (and its alias vuprintf) return values are uncheck -> void 2010-09-20 08:55:45 +00:00
sscanf.c Fix reds, inclusion of C files into plugins is tricky. 2010-12-02 21:29:05 +00:00
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 Add an advanced build option to force compiling and linking our reduced C library (probably useful for the sim). 2010-06-22 18:34:03 +00:00
strstr.c strstr(): cosmetics 2010-07-11 22:37:31 +00:00
strtok.c