Thread (2 messages) 2 messages, 2 authors, 2014-10-02

Re: [PATCH v2] powerpc: Speed up clear_page by unrolling it

flat view

From: Segher Boessenkool <hidden>
Date: 2014-10-02 14:18:09

On Thu, Oct 02, 2014 at 03:44:21PM +1000, Anton Blanchard wrote:
This assumes cacheline sizes won't grow beyond 512 bytes or
page sizes wont drop below 1kB,
Or a combination of those.
Michael found that some versions of gcc produce quite bad code
(all multiplies), so we give gcc a hand by using shifts and adds.
You can make the code a lot less cluttered as well as making the
generated code independent of compiler version by writing the setup
of twox..eightx in the asm block itself.


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help