From: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
To: Wainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com>
Cc: <libc-alpha@sourceware.org>
Subject: Re: [PATCH] powerpc64: Add POWER8 strnlen
Date: Thu, 23 Mar 2017 21:15:00 -0000 [thread overview]
Message-ID: <955A086F-92D5-420A-A063-9D5FBA6F2D18@linux.vnet.ibm.com> (raw)
In-Reply-To: <20170321201144.10513-1-wainersm@linux.vnet.ibm.com>
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
next prev parent reply other threads:[~2017-03-23 21:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-21 20:11 Wainer dos Santos Moschetta
2017-03-23 21:15 ` Carlos Eduardo Seo [this message]
2017-03-31 20:55 ` Wainer dos Santos Moschetta
2017-04-05 14:51 ` Tulio Magno Quites Machado Filho
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=955A086F-92D5-420A-A063-9D5FBA6F2D18@linux.vnet.ibm.com \
--to=cseo@linux.vnet.ibm.com \
--cc=libc-alpha@sourceware.org \
--cc=wainersm@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).