From e029e2e5c5448e9b32cc2f26c89968b61e0baa6c Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 29 Aug 2013 15:38:51 -0300 Subject: benchtests: Add memrchr benchmark --- benchtests/bench-memchr.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'benchtests/bench-memchr.c') diff --git a/benchtests/bench-memchr.c b/benchtests/bench-memchr.c index db099ad543..30c472c131 100644 --- a/benchtests/bench-memchr.c +++ b/benchtests/bench-memchr.c @@ -16,9 +16,10 @@ License along with the GNU C Library; if not, see . */ -#define TEST_MAIN -#define TEST_NAME "memchr" -#include "bench-string.h" +#ifndef USE_AS_MEMRCHR +# define TEST_MAIN +# define TEST_NAME "memchr" +# include "bench-string.h" typedef char *(*proto_t) (const char *, int, size_t); char *simple_memchr (const char *, int, size_t); @@ -34,6 +35,7 @@ simple_memchr (const char *s, int c, size_t n) return (char *) s - 1; return NULL; } +#endif static void do_one_test (impl_t *impl, const char *s, int c, size_t n, char *exp_res) -- cgit v1.2.3-65-gdbad