Salome HOME
Merge branch 'agy/debian_pkg_930' into 'master'.
[tools/configuration.git] / config / patches / edf / freeimage_3170_sci9.patch
1 diff -Naur Freeimage-3170_orig/Source/LibWebP/src/dsp/dsp.upsampling_mips_dsp_r2.c Freeimage-3170/Source/LibWebP/src/dsp/dsp.upsampling_mips_dsp_r2.c
2 --- Freeimage-3170_orig/Source/LibWebP/src/dsp/dsp.upsampling_mips_dsp_r2.c     2015-02-20 02:34:36.000000000 +0000
3 +++ Freeimage-3170/Source/LibWebP/src/dsp/dsp.upsampling_mips_dsp_r2.c  2018-10-24 11:19:31.058729145 +0000
4 @@ -34,15 +34,15 @@
5      G = G - t2 + kGCst;                                                        \
6      B = B + kBCst;                                                             \
7      __asm__ volatile (                                                         \
8 -      "shll_s.w         %["#R"],      %["#R"],        9              \n\t"     \
9 -      "shll_s.w         %["#G"],      %["#G"],        9              \n\t"     \
10 -      "shll_s.w         %["#B"],      %["#B"],        9              \n\t"     \
11 -      "precrqu_s.qb.ph  %["#R"],      %["#R"],        $zero          \n\t"     \
12 -      "precrqu_s.qb.ph  %["#G"],      %["#G"],        $zero          \n\t"     \
13 -      "precrqu_s.qb.ph  %["#B"],      %["#B"],        $zero          \n\t"     \
14 -      "srl              %["#R"],      %["#R"],        24             \n\t"     \
15 -      "srl              %["#G"],      %["#G"],        24             \n\t"     \
16 -      "srl              %["#B"],      %["#B"],        24             \n\t"     \
17 +      "shll_s.w         %[" #R "],      %[" #R "],        9              \n\t"     \
18 +      "shll_s.w         %[" #G "],      %[" #G "],        9              \n\t"     \
19 +      "shll_s.w         %[" #B "],      %[" #B "],        9              \n\t"     \
20 +      "precrqu_s.qb.ph  %[" #R "],      %[" #R "],        $zero          \n\t"     \
21 +      "precrqu_s.qb.ph  %[" #G "],      %[" #G "],        $zero          \n\t"     \
22 +      "precrqu_s.qb.ph  %[" #B "],      %[" #B "],        $zero          \n\t"     \
23 +      "srl              %[" #R "],      %[" #R "],        24             \n\t"     \
24 +      "srl              %[" #G "],      %[" #G "],        24             \n\t"     \
25 +      "srl              %[" #B "],      %[" #B "],        24             \n\t"     \
26        : [R]"+r"(R), [G]"+r"(G), [B]"+r"(B)                                     \
27        :                                                                        \
28      );                                                                         \
29 diff -Naur Freeimage-3170_orig/Source/LibWebP/src/dsp/dsp.yuv_mips_dsp_r2.c Freeimage-3170/Source/LibWebP/src/dsp/dsp.yuv_mips_dsp_r2.c
30 --- Freeimage-3170_orig/Source/LibWebP/src/dsp/dsp.yuv_mips_dsp_r2.c    2015-02-20 02:34:38.000000000 +0000
31 +++ Freeimage-3170/Source/LibWebP/src/dsp/dsp.yuv_mips_dsp_r2.c 2018-10-24 11:20:37.854752080 +0000
32 @@ -54,9 +54,9 @@
33    "srl              %[temp5],   %[temp5],       24              \n\t"          \
34    "srl              %[temp6],   %[temp6],       24              \n\t"          \
35    "srl              %[temp7],   %[temp7],       24              \n\t"          \
36 -  "sb               %[temp5],   "#R"(%[dst])                    \n\t"          \
37 -  "sb               %[temp6],   "#G"(%[dst])                    \n\t"          \
38 -  "sb               %[temp7],   "#B"(%[dst])                    \n\t"          \
39 +  "sb               %[temp5],   " #R "(%[dst])                    \n\t"          \
40 +  "sb               %[temp6],   " #G "(%[dst])                    \n\t"          \
41 +  "sb               %[temp7],   " #B "(%[dst])                    \n\t"          \
42  
43  #define ASM_CLOBBER_LIST()                                                     \
44    : [temp0]"=&r"(temp0), [temp1]"=&r"(temp1), [temp2]"=&r"(temp2),             \