commit | 7bf6057b962016eee57bc76295f80a26f90172f7 | [log] [tgz] |
---|---|---|
author | Christophe Leroy <christophe.leroy@c-s.fr> | Wed Aug 23 16:54:36 2017 +0200 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Fri Sep 01 16:42:46 2017 +1000 |
tree | f4b5f7cebcbe57cb9e983d5c117667239c89f1f0 | |
parent | c0622167e3d4195d50b925bfabd8966589635e75 [diff] |
powerpc/32: optimise memset() There is no need to extend the set value to an int when the length is lower than 4 as in that case we only do byte stores. We can therefore immediately branch to the part handling it. By separating it from the normal case, we are able to eliminate a few actions on the destination pointer. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>