From 9c8a6ad620b49a27120ecdd7049c26bf05900397 Mon Sep 17 00:00:00 2001 From: Noah Goldstein Date: Wed, 23 Mar 2022 16:57:29 -0500 Subject: x86: Remove strspn-sse2.S and use the generic implementation The generic implementation is faster. geometric_mean(N=20) of all benchmarks New / Original: .710 All string/memory tests pass. Reviewed-by: H.J. Lu --- sysdeps/x86_64/multiarch/strspn-sse2.S | 28 ---------------------------- sysdeps/x86_64/multiarch/strspn-sse2.c | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 28 deletions(-) delete mode 100644 sysdeps/x86_64/multiarch/strspn-sse2.S create mode 100644 sysdeps/x86_64/multiarch/strspn-sse2.c (limited to 'sysdeps/x86_64/multiarch') diff --git a/sysdeps/x86_64/multiarch/strspn-sse2.S b/sysdeps/x86_64/multiarch/strspn-sse2.S deleted file mode 100644 index e0a095f25a..0000000000 --- a/sysdeps/x86_64/multiarch/strspn-sse2.S +++ /dev/null @@ -1,28 +0,0 @@ -/* strspn optimized with SSE2. - Copyright (C) 2017-2022 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 - . */ - -#if IS_IN (libc) - -# include -# define strspn __strspn_sse2 - -# undef libc_hidden_builtin_def -# define libc_hidden_builtin_def(strspn) -#endif - -#include diff --git a/sysdeps/x86_64/multiarch/strspn-sse2.c b/sysdeps/x86_64/multiarch/strspn-sse2.c new file mode 100644 index 0000000000..61cc6cb0a5 --- /dev/null +++ b/sysdeps/x86_64/multiarch/strspn-sse2.c @@ -0,0 +1,28 @@ +/* strspn. + Copyright (C) 2017-2022 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 + . */ + +#if IS_IN (libc) + +# include +# define STRSPN __strspn_sse2 + +# undef libc_hidden_builtin_def +# define libc_hidden_builtin_def(STRSPN) +#endif + +#include -- cgit 1.4.1