View | Details | Raw Unified | Return to bug 216771
Collapse All | Expand All

(-)graphics/rawstudio/files/patch-plugins_denoise_fftwindow.cpp (+38 lines)
Line 0 Link Here
1
--- plugins/denoise/fftwindow.cpp.orig	2011-02-15 17:28:03 UTC
2
+++ plugins/denoise/fftwindow.cpp
3
@@ -174,7 +174,7 @@ void FFTWindow::applyAnalysisWindowSSE( 
4
     if ((uintptr_t)src1 & 15) {
5
       asm volatile 
6
       ( 
7
-      "loop_analysis_sse_ua:\n"
8
+      "1:\n"
9
       "prefetchnta (%4)\n"        // Prefetch next line (Used once only, so don't pollute cache)
10
       "movups (%1), %%xmm0\n"       // src1 pt1
11
       "movups 16(%1), %%xmm1\n"     // src1 pt2 
12
@@ -193,7 +193,7 @@ void FFTWindow::applyAnalysisWindowSSE( 
13
       "add $64, %2\n"
14
       "add $64, %4\n"
15
       "dec %3\n"
16
-      "jnz loop_analysis_sse_ua\n"
17
+      "jnz 1b\n"
18
 
19
       : /* no output registers */
20
       : "r" (analysis.getLine(y)), "r" (src1),  "r" (dst->getLine(y)), "r" (sizew), "r" (&src1[image->pitch])
21
@@ -202,7 +202,7 @@ void FFTWindow::applyAnalysisWindowSSE( 
22
     } else {
23
     asm volatile 
24
       ( 
25
-      "loop_analysis_sse_a:\n"
26
+      "1:\n"
27
       "prefetchnta (%4)\n"        // Prefetch next line (Used once only, so don't pollute cache)
28
       "movaps (%1), %%xmm0\n"       // src1 pt1
29
       "movaps 16(%1), %%xmm1\n"     // src1 pt2 
30
@@ -221,7 +221,7 @@ void FFTWindow::applyAnalysisWindowSSE( 
31
       "add $64, %2\n"
32
       "add $64, %4\n"
33
       "dec %3\n"
34
-      "jnz loop_analysis_sse_a\n"
35
+      "jnz 1b\n"
36
 
37
       : /* no output registers */
38
       : "r" (analysis.getLine(y)), "r" (src1),  "r" (dst->getLine(y)), "r" (sizew), "r" (&src1[image->pitch])

Return to bug 216771