about summary refs log tree commit diff
path: root/sysdeps/x86_64/multiarch/strncase_l-evex.S
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2022-03-24 18:56:13 -0500
committerNoah Goldstein <goldstein.w.n@gmail.com>2022-03-25 13:16:50 -0500
commit84e7c46df4086873eae28a1fb87d2cf5388b1e16 (patch)
tree4a62843c642a15bf09a4da8030d9ca43c21ecea7 /sysdeps/x86_64/multiarch/strncase_l-evex.S
parentbbf81222343fed5cd704001a2ae0d86c71544151 (diff)
downloadglibc-84e7c46df4086873eae28a1fb87d2cf5388b1e16.tar.gz
glibc-84e7c46df4086873eae28a1fb87d2cf5388b1e16.tar.xz
glibc-84e7c46df4086873eae28a1fb87d2cf5388b1e16.zip
x86: Add EVEX optimized str{n}casecmp
geometric_mean(N=40) of all benchmarks EVEX / SSE42: .621

All string/memory tests pass.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'sysdeps/x86_64/multiarch/strncase_l-evex.S')
-rw-r--r--sysdeps/x86_64/multiarch/strncase_l-evex.S25
1 files changed, 25 insertions, 0 deletions
diff --git a/sysdeps/x86_64/multiarch/strncase_l-evex.S b/sysdeps/x86_64/multiarch/strncase_l-evex.S
new file mode 100644
index 0000000000..8a5af3695c
--- /dev/null
+++ b/sysdeps/x86_64/multiarch/strncase_l-evex.S
@@ -0,0 +1,25 @@
+/* strncasecmp_l optimized with EVEX.
+   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
+   <https://www.gnu.org/licenses/>.  */
+
+#ifndef STRCMP
+# define STRCMP	__strncasecmp_l_evex
+#endif
+#define OVERFLOW_STRCMP	__strcasecmp_l_evex
+#define USE_AS_STRCASECMP_L
+#define USE_AS_STRNCMP
+#include "strcmp-evex.S"