From 67e3b0c63c35769c1ba28fa2a32446332bb4fcef Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Wed, 6 Apr 2022 20:53:24 +0530 Subject: tests/string: Drop simple/stupid/builtin tests In most cases the simple/stupid/builtin functions were in there to benchmark optimized implementations against. Only in some cases the functions are used to check expected results. Remove these tests from IMPL() and only keep them in wherever they're used for a specific purpose, e.g. to generate expected results. This improves timing of `make subdirs=string` by over a minute and a half (over 15%) on a Whiskey Lake laptop. Signed-off-by: Siddhesh Poyarekar Reviewed-by: Noah Goldstein --- string/test-memchr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'string/test-memchr.c') diff --git a/string/test-memchr.c b/string/test-memchr.c index a461708..279a67e 100644 --- a/string/test-memchr.c +++ b/string/test-memchr.c @@ -44,11 +44,10 @@ #endif /* WIDE */ typedef CHAR *(*proto_t) (const CHAR *, int, size_t); -CHAR *SIMPLE_MEMCHR (const CHAR *, int, size_t); -IMPL (SIMPLE_MEMCHR, 0) IMPL (MEMCHR, 1) +/* Naive implementation to verify results. */ CHAR * SIMPLE_MEMCHR (const CHAR *s, int c, size_t n) { -- cgit v1.1