On Mon, 22 Aug 2005 08:08:20 -0600 Tres Melton <[EMAIL PROTECTED]> babbled:

> On Mon, 2005-08-22 at 07:29 +0000, Tiago Victor Gehring wrote:
> > Hi,
> > regarding the problem I mentionted about the new amd64 optimized
> > functions in imlib2, I think I found the problem, has something to do
> > with the fact that memory was not aligned in some (SSE2 128 bit) MOV
> > operations - ie, I just changed a couple of MOVDQA to MOVDQU in file
> > amd64_blend.S, treating memory as unaligned; 
> > Now if this has some other side effects (speed?) I don't know, but for
> > me it worked now...
> > 
> > Cheers,
> > Tiago Gehring
> > 
> This is a poor solution in terms of speed.  The correct solution is to
> ensure that the memory is properly aligned.  For the time being it
> should be left that way (I noticed that raster committed the move
> unaligned data change).  I have spoken with vapier (briefly) about it
> and am hoping to force the memory to be aligned on 128 bit boundaries.
> This will impact the stack size of the code and a few other things that
> I want to look into before offering a patch.  A couple of hints:

yeah. i;d rather though it not segv :) so take a hit and not segv for now
thanks :)

> SSE instructions should be aligned on 16 byte (128 bit) boundaries.
> MMX instructions should be aligned on  8 byte ( 64 bit) boundaries.
> 
> ASM:
>   .align 16
> 
> C:
>   Image * __attribute__ ((aligned (16))) image;
> 
> Regards,
> RiverRat
> -- 
> Tres
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
裸好多                              [EMAIL PROTECTED]
Tokyo, Japan (東京 日本)


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to