Enlightenment CVS committal
Author : raster
Project : e17
Module : proto
Dir : e17/proto/gfx_routines/op_copy
Modified Files:
op_copy_pixel_i386.c
Log Message:
oops - screws up sse2 copy - seems 64dwords (256 byte at a time) copies dont
work... hmm. back to 128bytes at a time (still slower than plain sse)
===================================================================
RCS file:
/cvsroot/enlightenment/e17/proto/gfx_routines/op_copy/op_copy_pixel_i386.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- op_copy_pixel_i386.c 23 Feb 2006 06:36:21 -0000 1.1
+++ op_copy_pixel_i386.c 23 Feb 2006 06:56:14 -0000 1.2
@@ -110,14 +110,14 @@
#ifdef OP_FN /* do it using sse2 */
OPFN(_op_copy_p_dp_sse2) {
DATA32 *s, *d, *e;
- s = p->src.p; d = p->dst.p; e = s + p->l - 63;
- while ((((unsigned long)((unsigned char *)s)) & 0x3f))
+ s = p->src.p; d = p->dst.p; e = s + p->l - 31;
+ while ((((unsigned long)((unsigned char *)s)) & 0x1f))
{ *d = *s; d++; s++;}
- e-=63;
- for (; s < e; s+=64, d+=64) {
- MOVE_64DWORDS_ALIGNED_SSE2(s, d);
+ e-=31;
+ for (; s < e; s+=32, d+=32) {
+ MOVE_32DWORDS_ALIGNED_SSE2(s, d);
}
- e+=63;
+ e+=31;
for (; s < e; s++, d++) {
*d = *s;
}
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs