glibc/sysdeps/i386/i686/multiarch/strcspn-c.c
Florian Weimer 69052a3a95 i686: Add missing IS_IN (libc) guards to vectorized strcspn
Since commit d957c4d3fa (i386: Compile
rtld-*.os with -mno-sse -mno-mmx -mfpmath=387), vector intrinsics can
no longer be used in ld.so, even if the compiled code never makes it
into the final ld.so link.  This commit adds the missing IS_IN (libc)
guard to the SSE 4.2 strcspn implementation, so that it can be used from
ld.so in the future.
2017-06-14 14:50:11 +02:00

5 lines
112 B
C

#if IS_IN (libc)
# define __strcspn_sse2 __strcspn_ia32
# include <sysdeps/x86_64/multiarch/strcspn-c.c>
#endif