powerpc/32: optimise memset()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 23 Aug 2017 14:54:36 +0000 (16:54 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 1 Sep 2017 06:42:46 +0000 (16:42 +1000)
commit7bf6057b962016eee57bc76295f80a26f90172f7
treef4b5f7cebcbe57cb9e983d5c117667239c89f1f0
parentc0622167e3d4195d50b925bfabd8966589635e75
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>
arch/powerpc/lib/copy_32.S