[Pixman] [PATCH] MIPS: DSPr2: Added mips_dspr2_blt and mips_dspr2_fill routines.

Søren Sandmann sandmann at cs.au.dk
Tue Feb 28 16:18:14 PST 2012


Matt Turner <mattst88 at gmail.com> writes:

> On Tue, Feb 28, 2012 at 1:20 PM, Lukic, Nemanja <nlukic at mips.com> wrote:
>> Good point.
>> Only problem there is that address on which we are storing might not be 4-byte aligned (since we are doing memset on array of uint16_t).
>> But *dest can be aligned (with simple check) before the main loop, and then instead of 16 x sh, we can use 8 x sw.
>> I will do that, and resubmit the patch.
>
> Ah, right. Co-alignment of src and dest makes this more complicated
> for blt. For fill, it's pretty simple though.

For blt, maybe the "prepend" or "append" instructions could be used to
align the source to the destination? Though, it looks like these
instructions require an immediate operator, which means there would have
to be two separate code paths.


Soren


More information about the Pixman mailing list