This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix powerpc64/power7 memchr for large input sizes
- From: Carlos Eduardo Seo <cseo at linux dot vnet dot ibm dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, <libc-alpha at sourceware dot org>
- Date: Thu, 15 Dec 2016 16:11:41 -0200
- Subject: Re: [PATCH] Fix powerpc64/power7 memchr for large input sizes
- Authentication-results: sourceware.org; auth=none
- References: <1481802979-4302-1-git-send-email-adhemerval.zanella@linaro.org>
On 12/15/16, 9:56 AM, "Adhemerval Zanella" <libc-alpha-owner@sourceware.org on behalf of adhemerval.zanella@linaro.org> wrote:
This patch fixes it by implement a satured addition where overflows
sets the maximum pointer size to UINTPTR_MAX.
Checked on powerpc64le-linux-gnu.
LGTM.
--
Carlos Eduardo Seo
Software Engineer - Linux on Power Toolchain
cseo@linux.vnet.ibm.com