diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2021-10-23 01:36:30 -0400 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2021-10-27 13:03:46 -0500 |
commit | cf3acd774f4c11e90cdc28192d69c60e2c02a004 (patch) | |
tree | 19d1e9a8408168c452d37d4f1a09a259d3762e52 /benchtests/bench-memcmpeq.c | |
parent | 3592ccd472a47ec8be977b0ff33f841f4c175caf (diff) | |
download | glibc-cf3acd774f4c11e90cdc28192d69c60e2c02a004.tar.gz glibc-cf3acd774f4c11e90cdc28192d69c60e2c02a004.tar.xz glibc-cf3acd774f4c11e90cdc28192d69c60e2c02a004.zip |
Benchtests: Add benchtests for __memcmpeq
No bug. This commit adds __memcmpeq benchmarks. The benchmarks just use the existing ones in memcmp. This will be useful for testing implementations of __memcmpeq that do not just alias memcmp.
Diffstat (limited to 'benchtests/bench-memcmpeq.c')
-rw-r--r-- | benchtests/bench-memcmpeq.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/benchtests/bench-memcmpeq.c b/benchtests/bench-memcmpeq.c new file mode 100644 index 0000000000..e918d4f77c --- /dev/null +++ b/benchtests/bench-memcmpeq.c @@ -0,0 +1,20 @@ +/* Measure __memcmpeq functions. + Copyright (C) 2015-2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + <https://www.gnu.org/licenses/>. */ + +#define TEST_MEMCMPEQ 1 +#include "bench-memcmp.c" |