mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 22:40:05 +00:00
x86: Put wcs{n}len-sse4.1 in the sse4.1 text section
Previously was missing but the two implementations shouldn't get in the sse2 (generic) text section.
This commit is contained in:
parent
227afaa672
commit
afc6e4328f
@ -28,6 +28,10 @@
|
||||
# define SHIFT_RETURN
|
||||
#endif
|
||||
|
||||
#ifndef SECTION
|
||||
# define SECTION(p) p
|
||||
#endif
|
||||
|
||||
/* Long lived register in strlen(s), strnlen(s, n) are:
|
||||
|
||||
%xmm3 - zero
|
||||
@ -37,7 +41,7 @@
|
||||
*/
|
||||
|
||||
|
||||
.text
|
||||
.section SECTION(.text),"ax",@progbits
|
||||
ENTRY(strlen)
|
||||
|
||||
/* Test 64 bytes from %rax for zero. Save result as bitmask in %rdx. */
|
||||
|
@ -1,4 +1,5 @@
|
||||
#define AS_WCSLEN
|
||||
#define strlen __wcslen_sse4_1
|
||||
#define SECTION(p) p##.sse4.1
|
||||
|
||||
#include "strlen-vec.S"
|
||||
|
@ -1,5 +1,6 @@
|
||||
#define AS_WCSLEN
|
||||
#define AS_STRNLEN
|
||||
#define strlen __wcsnlen_sse4_1
|
||||
#define SECTION(p) p##.sse4.1
|
||||
|
||||
#include "strlen-vec.S"
|
||||
|
Loading…
Reference in New Issue
Block a user