From: Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
To: libc-alpha@sourceware.org
Subject: Re: [PATCH] benchtests: Add more tests for memrchr
Date: Thu, 25 May 2017 09:32:00 -0000 [thread overview]
Message-ID: <ac58b0bc-0eae-f055-98b6-e12dd4b04cf8@linux.vnet.ibm.com> (raw)
In-Reply-To: <20170524154422.GA14778@lucon.org>
On 05/24/2017 09:14 PM, H.J. Lu wrote:
> FOR_EACH_IMPL (impl, 0)
> do_one_test (impl, (CHAR *) (buf + align), seek_char, len, result);
> @@ -143,11 +144,27 @@ test_main (void)
> do_test (i, 64, 256, 23);
> do_test (0, 16 << i, 2048, 0);
> do_test (i, 64, 256, 0);
> +#ifdef USE_AS_MEMRCHR
> + /* Also test the position close to the beginning for memrchr. */
> + do_test (0, i, 256, 23);
> + do_test (0, i, 256, 0);
> + do_test (i, i, 256, 23);
> + do_test (i, i, 256, 0);
> +#endif
> }
> for (i = 1; i < 32; ++i)
> {
> do_test (0, i, i + 1, 23);
> do_test (0, i, i + 1, 0);
> + do_test (i, i, i + 1, 23);
> + do_test (i, i, i + 1, 0);
> +#ifdef USE_AS_MEMRCHR
> + /* Also test the position close to the beginning for memrchr. */
> + do_test (0, 1, i + 1, 23);
> + do_test (0, 2, i + 1, 0);
> + do_test (i, i, i + 1, 23);
> + do_test (i, i, i + 1, 0);
The above two lines are repeating, instead of
do_test (i, 1, i + 1, 23);
do_test (i, 2, i + 1, 0);
LGTM with the above change.
> +#endif
> }
>
> return ret;
> -- 2.9.4
>
--
Thanks
Rajalakshmi S
next prev parent reply other threads:[~2017-05-25 9:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-24 15:44 H.J. Lu
2017-05-25 9:32 ` Rajalakshmi Srinivasaraghavan [this message]
2017-06-04 16:47 ` H.J. Lu
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=ac58b0bc-0eae-f055-98b6-e12dd4b04cf8@linux.vnet.ibm.com \
--to=raji@linux.vnet.ibm.com \
--cc=libc-alpha@sourceware.org \
/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).