diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-03-23 16:57:22 -0500 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-03-25 11:46:13 -0500 |
commit | 30d627d477d7255345a4b713cf352ac32d644d61 (patch) | |
tree | 164a5c3c1018c4fd515145bc189c469d62fe6d97 /signal/sighold.c | |
parent | dc18cd6c818944fafbeae9ba1b50bd8d0d070a7c (diff) | |
download | glibc-30d627d477d7255345a4b713cf352ac32d644d61.tar.gz glibc-30d627d477d7255345a4b713cf352ac32d644d61.tar.xz glibc-30d627d477d7255345a4b713cf352ac32d644d61.zip |
x86: Optimize strcspn and strpbrk in strcspn-c.c
Use _mm_cmpeq_epi8 and _mm_movemask_epi8 to get strlen instead of _mm_cmpistri. Also change offset to unsigned to avoid unnecessary sign extensions. geometric_mean(N=20) of all benchmarks that dont fallback on sse2/strlen; New / Original: .928 All string/memory tests pass. Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'signal/sighold.c')
0 files changed, 0 insertions, 0 deletions