|author||Rich Felker <email@example.com>||2015-02-26 01:51:39 -0500|
|committer||Rich Felker <firstname.lastname@example.org>||2015-02-26 01:51:39 -0500|
overhaul optimized i386 memset asm
on most cpu models, "rep stosl" 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 62, and shrink-wraps this code path. in addition, "rep stosl" is very sensitive to misalignment. the cost varies with size and with cpu model, but it has been observed performing 1.5 to 4 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 to the x86_64 memset asm proposed by Denys Vlasenko.
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions