|author||Rich Felker <email@example.com>||2015-02-26 02:07:08 -0500|
|committer||Rich Felker <firstname.lastname@example.org>||2015-02-26 02:07:08 -0500|
overhaul optimized x86_64 memset asm
on most cpu models, "rep stosq" has high overhead that makes it undesirable for small memset sizes. the new code extends the minimal-branch fast path for short memsets from size 15 up to size 126, and shrink-wraps this code path. in addition, "rep stosq" is sensitive to misalignment. the cost varies with size and with cpu model, but it has been observed performing 1.5 times slower when the destination address is not aligned mod 16. the new code thus ensures alignment mod 16, but also preserves any existing additional alignment, in case there are cpu models where it is beneficial. this version is based in part on changes proposed by Denys Vlasenko.
Diffstat (limited to 'src/thread/__timedwait.c')
0 files changed, 0 insertions, 0 deletions