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] powerpc64: Add POWER8 strnlen


Ping. Any objection to merge this change?

On 03/23/2017 06:14 PM, Carlos Eduardo Seo wrote:
>
> On 3/21/17, 5:11 PM, "Wainer dos Santos Moschetta" <libc-alpha-owner@sourceware.org on behalf of wainersm@linux.vnet.ibm.com> wrote:
>
>     Added strnlen POWER8 otimized for long strings. It delivers
>     same performance as POWER7 implementation for short strings.
>     
>     This takes advantage of reasonably performing unaligned loads
>     and bit permutes to check the first 1-16 bytes until
>     quadword aligned, then checks in 64 bytes strides until unsafe,
>     then 16 bytes, truncating the count if need be.
>     
>     Likewise, the POWER7 code is recycled for less than 32 bytes strings.
>     
>     Tested on ppc64 and ppc64le.
>     
>
>
> LGTM
>
>
> --
> Carlos Eduardo Seo
> Software Engineer - Linux on Power Toolchain
> cseo@linux.vnet.ibm.com
>
>
>
>


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