aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2022-03-23 16:57:24 -0500
committerNoah Goldstein <goldstein.w.n@gmail.com>2022-03-25 11:46:13 -0500
commit412d10343168b05b8cf6c3683457cf9711d28046 (patch)
tree5b141d96031b2ff23400528d4d046361553fad2f /scripts
parent30d627d477d7255345a4b713cf352ac32d644d61 (diff)
downloadglibc-412d10343168b05b8cf6c3683457cf9711d28046.tar.xz
glibc-412d10343168b05b8cf6c3683457cf9711d28046.zip
x86: Optimize strspn in strspn-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; New / Original: .901 All string/memory tests pass. Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions