Author: post
Date: 2010-11-09 16:05:27 +0100 (Tue, 09 Nov 2010)
New Revision: 3615

Modified:
   trunk/plugins/dcp/dcp-sse2.c
Log:
DCP: Prefetch start of next line, when beginning on current in SSE2 (correct 
code).

Modified: trunk/plugins/dcp/dcp-sse2.c
===================================================================
--- trunk/plugins/dcp/dcp-sse2.c        2010-11-09 14:51:37 UTC (rev 3614)
+++ trunk/plugins/dcp/dcp-sse2.c        2010-11-09 15:05:27 UTC (rev 3615)
@@ -656,8 +656,10 @@
        for(y = t->start_y ; y < t->end_y; y++)
        {
                __m128i* pixel = (__m128i*)GET_PIXEL(image, 0, y);
+
                /* Prefetch next line */
-               _mm_prefetch((char*)(pixel+4)+image->rowstride, _MM_HINT_NTA);
+               _mm_prefetch((char*)(pixel)+image->rowstride*2, _MM_HINT_NTA);
+
                for(x=0; x < end_x; x+=4)
                {
 


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to