This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] powerpc: Fix powerpc32/power7 memchr for large input sizes



On 12/23/16, 5:47 PM, "Tulio Magno Quites Machado Filho" <libc-alpha-owner@sourceware.org on behalf of tuliom@linux.vnet.ibm.com> wrote:

    The same error fixed in commit b224637928e9fc04e3cef3e10d02ccf042d01584
    happens in the 32-bit implementation of memchr for power7.
    
    This patch adopts the same solution, with a minimal change: it
    implements a saturated addition where overflows sets the maximum pointer
    size to UINTPTR_MAX.
    

LGTM 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]