mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
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>
This commit is contained in:
@ -29,12 +29,9 @@
|
||||
#define TIMEOUT (8 * 60)
|
||||
#include "test-string.h"
|
||||
|
||||
char *simple_memcpy (char *, const char *, size_t);
|
||||
char *builtin_memcpy (char *, const char *, size_t);
|
||||
|
||||
IMPL (simple_memcpy, 0)
|
||||
IMPL (builtin_memcpy, 0)
|
||||
IMPL (memcpy, 1)
|
||||
|
||||
/* Naive implementation to verify results. */
|
||||
char *
|
||||
simple_memcpy (char *dst, const char *src, size_t n)
|
||||
{
|
||||
@ -44,11 +41,6 @@ simple_memcpy (char *dst, const char *src, size_t n)
|
||||
return ret;
|
||||
}
|
||||
|
||||
char *
|
||||
builtin_memcpy (char *dst, const char *src, size_t n)
|
||||
{
|
||||
return __builtin_memcpy (dst, src, n);
|
||||
}
|
||||
#endif
|
||||
typedef char *(*proto_t) (char *, const char *, size_t);
|
||||
typedef uint32_t __attribute__ ((may_alias, aligned (1))) unaligned_uint32_t;
|
||||
|
Reference in New Issue
Block a user