]> sourceware.org Git - glibc.git/commit
Add x86_64 memset optimized for AVX2
authorLing Ma <ling.ml@alibaba-inc.com>
Thu, 19 Jun 2014 20:00:56 +0000 (13:00 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 19 Jun 2014 22:14:08 +0000 (15:14 -0700)
commit5c74e47cd628a6fcd2e4eba021301e275f8a95a3
treeb85959ae1a65bc526d683807213027115886d96d
parent4d43ef1e7434d7d419afbcd754931cb0c794763c
Add x86_64 memset optimized for AVX2

In this patch we take advantage of HSW memory bandwidth, manage to
reduce miss branch prediction by avoiding using branch instructions and
force destination to be aligned with avx & avx2 instruction.

The CPU2006 403.gcc benchmark indicates this patch improves performance
from 26% to 59%.

* sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
* sysdeps/x86_64/multiarch/memset-avx2.S: New file.
* sysdeps/x86_64/multiarch/memset.S: Likewise.
* sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
* sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
ChangeLog
sysdeps/x86_64/multiarch/Makefile
sysdeps/x86_64/multiarch/memset-avx2.S [new file with mode: 0644]
sysdeps/x86_64/multiarch/memset.S [new file with mode: 0644]
sysdeps/x86_64/multiarch/memset_chk.S [new file with mode: 0644]
sysdeps/x86_64/multiarch/rtld-memset.S [new file with mode: 0644]
This page took 0.045839 seconds and 5 git commands to generate.