]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/x86_64/multiarch/wcslen-sse2.S
x86: Add support to build strcmp/strlen/strchr with explicit ISA level
[thirdparty/glibc.git] / sysdeps / x86_64 / multiarch / wcslen-sse2.S
index 944c3bd9c6e50967f527e31fa6333402d95f948e..e9c518a93203a57cd51dc587d377f91100c72970 100644 (file)
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-#if IS_IN (libc)
-# ifndef WCSLEN
-#  define WCSLEN __wcslen_sse2
-# endif
+#include <isa-level.h>
+
+#if ISA_SHOULD_BUILD (1)
+
+# include <sysdep.h>
+
+#ifndef WCSLEN
+# define WCSLEN        __wcslen_sse2
 #endif
 
-#include <sysdep.h>
 
        .text
 ENTRY (WCSLEN)
@@ -235,3 +238,5 @@ L(exit_tail7):
        ret
 
 END (WCSLEN)
+
+#endif