Author: post
Date: 2010-06-29 20:47:00 +0200 (Tue, 29 Jun 2010)
New Revision: 3456
Modified:
trunk/plugins/resample/resample-sse2.c
Log:
Use streaming stores for resampler.
Modified: trunk/plugins/resample/resample-sse2.c
===================================================================
--- trunk/plugins/resample/resample-sse2.c 2010-06-29 18:41:39 UTC (rev
3455)
+++ trunk/plugins/resample/resample-sse2.c 2010-06-29 18:47:00 UTC (rev
3456)
@@ -248,12 +248,12 @@
/* Store result */
__m128i* sse_dst = (__m128i*)&out[x];
- _mm_store_si128(sse_dst, acc1);
- _mm_store_si128(sse_dst + 1, acc2);
- _mm_store_si128(sse_dst + 2, acc3);
+ _mm_stream_si128(sse_dst, acc1);
+ _mm_stream_si128(sse_dst + 1, acc2);
+ _mm_stream_si128(sse_dst + 2, acc3);
in += 24;
}
-
+
/* Process remaining pixels */
for (; x < end_x; x++)
{
@@ -267,6 +267,7 @@
}
wg += fir_filter_size;
}
+ _mm_sfence();
g_free(weights);
g_free(offsets);
}
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit