glibc/sysdeps/tile/tilegx
Chris Metcalf 502697713f tile: Check for pointer add overflow in memchr
As was done in b224637928, check for large size causing an overflow
in the loop that walks over the array.

Branching out of line here is the fastest approach for handling this
problem, since tile can bundle the instructions to compute the branch
test in parallel with doing the required memchr loop setup computation.

Unfortunately, the existing saturated ops (e.g. tilegx addxsc) are
all signed saturing ops, so don't help with unsigned saturation.
2017-01-16 15:44:48 -05:00
..
bits Define wordsize.h macros everywhere 2016-11-04 09:37:44 -07:00
tilegx32 Move tilegx, tilepro, and linux-generic from ports to libc. 2014-02-10 11:04:39 -05:00
tilegx64 Move tilegx, tilepro, and linux-generic from ports to libc. 2014-02-10 11:04:39 -05:00
Implies tilegx: enable wordsize-64 support for ieee745 dbl-64. 2014-12-23 14:04:35 -05:00
Makefile Move tilegx, tilepro, and linux-generic from ports to libc. 2014-02-10 11:04:39 -05:00
atomic-machine.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memchr.c tile: Check for pointer add overflow in memchr 2017-01-16 15:44:48 -05:00
memcpy.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memset.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memusage.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
rawmemchr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasestr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strchr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strchrnul.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
string-endian.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strlen.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strnlen.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strrchr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strstr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00