aboutsummaryrefslogtreecommitdiff
path: root/string/test-memmove.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2022-04-06 20:53:24 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2022-04-06 20:53:24 +0530
commit67e3b0c63c35769c1ba28fa2a32446332bb4fcef (patch)
tree30222f7961103558c51c99871cead59139e65fd5 /string/test-memmove.c
parentdfc7bf8a24f63532da167cc7131227c1c4027ffb (diff)
downloadglibc-67e3b0c63c35769c1ba28fa2a32446332bb4fcef.zip
glibc-67e3b0c63c35769c1ba28fa2a32446332bb4fcef.tar.gz
glibc-67e3b0c63c35769c1ba28fa2a32446332bb4fcef.tar.bz2
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 <siddhesh@sourceware.org> Reviewed-by: Noah Goldstein <libc-alpha@sourceware.org>
Diffstat (limited to 'string/test-memmove.c')
-rw-r--r--string/test-memmove.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/string/test-memmove.c b/string/test-memmove.c
index 8d9ac86..be8752e 100644
--- a/string/test-memmove.c
+++ b/string/test-memmove.c
@@ -29,23 +29,23 @@ char *simple_memmove (char *, const char *, size_t);
#ifdef TEST_BCOPY
typedef void (*proto_t) (const char *, char *, size_t);
-void simple_bcopy (const char *, char *, size_t);
-IMPL (simple_bcopy, 0)
IMPL (bcopy, 1)
+/* Naive implementation to verify results. */
void
simple_bcopy (const char *src, char *dst, size_t n)
{
simple_memmove (dst, src, n);
}
+
#else
typedef char *(*proto_t) (char *, const char *, size_t);
-IMPL (simple_memmove, 0)
IMPL (memmove, 1)
#endif
+/* Naive implementation to verify results. */
char *
inhibit_loop_to_libcall
simple_memmove (char *dst, const char *src, size_t n)