mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

270 lines
11 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/kasc/libsdl_gfx/gcc40.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. this fixes double use of asm labels:
  20. {standard input}: Assembler messages:
  21. {standard input}:4361: Error: symbol `.L1010' is already defined
  22. diff -dur SDL_gfx-2.0.13/SDL_imageFilter.c src.libsdl_gfx.1130183692.7713.3446622608/SDL_gfx-2.0.13/SDL_imageFilter.c
  23. --- SDL_gfx-2.0.13/SDL_imageFilter.c 2004-11-29 20:53:35.000000000 +0100
  24. +++ src.libsdl_gfx.1130183692.7713.3446622608/SDL_gfx-2.0.13/SDL_imageFilter.c 2005-10-25 00:21:23.000000000 +0200
  25. @@ -71,7 +71,7 @@
  26. // ------------------------------------------------------------------------------------
  27. // SDL_imageFilterAdd: D = saturation255(S1 + S2)
  28. -int SDL_imageFilterAddMMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  29. +static int SDL_imageFilterAddMMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  30. {
  31. #ifdef USE_MMX
  32. asm volatile
  33. @@ -145,7 +145,7 @@
  34. }
  35. // SDL_imageFilterMean: D = S1/2 + S2/2
  36. -int SDL_imageFilterMeanMMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length,
  37. +static int SDL_imageFilterMeanMMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length,
  38. unsigned char *Mask)
  39. {
  40. #ifdef USE_MMX
  41. @@ -231,7 +234,7 @@
  42. }
  43. // SDL_imageFilterSub: D = saturation0(S1 - S2)
  44. -int SDL_imageFilterSubMMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  45. +static int SDL_imageFilterSubMMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  46. {
  47. #ifdef USE_MMX
  48. asm volatile
  49. @@ -303,7 +306,7 @@
  50. }
  51. // SDL_imageFilterAbsDiff: D = | S1 - S2 |
  52. -int SDL_imageFilterAbsDiffMMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  53. +static int SDL_imageFilterAbsDiffMMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  54. {
  55. #ifdef USE_MMX
  56. asm volatile
  57. @@ -377,7 +380,7 @@
  58. }
  59. // SDL_imageFilterMult: D = saturation255(S1 * S2)
  60. -int SDL_imageFilterMultMMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  61. +static int SDL_imageFilterMultMMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  62. {
  63. #ifdef USE_MMX
  64. asm volatile
  65. @@ -472,7 +475,7 @@
  66. }
  67. // SDL_imageFilterMultNor: D = S1 * S2 (non-MMX)
  68. -int SDL_imageFilterMultNorASM(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  69. +static int SDL_imageFilterMultNorASM(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  70. {
  71. #ifdef USE_MMX
  72. asm volatile
  73. @@ -538,7 +541,7 @@
  74. }
  75. // SDL_imageFilterMultDivby2: D = saturation255(S1/2 * S2)
  76. -int SDL_imageFilterMultDivby2MMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  77. +static int SDL_imageFilterMultDivby2MMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  78. {
  79. #ifdef USE_MMX
  80. asm volatile
  81. @@ -623,7 +626,7 @@
  82. }
  83. // SDL_imageFilterMultDivby4: D = saturation255(S1/2 * S2/2)
  84. -int SDL_imageFilterMultDivby4MMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  85. +static int SDL_imageFilterMultDivby4MMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  86. {
  87. #ifdef USE_MMX
  88. asm volatile
  89. @@ -710,7 +713,7 @@
  90. }
  91. // SDL_imageFilterBitAnd: D = S1 & S2
  92. -int SDL_imageFilterBitAndMMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  93. +static int SDL_imageFilterBitAndMMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  94. {
  95. #ifdef USE_MMX
  96. asm volatile
  97. @@ -782,7 +785,7 @@
  98. }
  99. // SDL_imageFilterBitOr: D = S1 | S2
  100. -int SDL_imageFilterBitOrMMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  101. +static int SDL_imageFilterBitOrMMX(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  102. {
  103. #ifdef USE_MMX
  104. asm volatile
  105. @@ -851,7 +854,7 @@
  106. }
  107. // SDL_imageFilterDiv: D = S1 / S2 (non-MMX)
  108. -int SDL_imageFilterDivASM(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  109. +static int SDL_imageFilterDivASM(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, int length)
  110. {
  111. #ifdef USE_MMX
  112. asm volatile
  113. @@ -897,7 +900,7 @@
  114. // ------------------------------------------------------------------------------------
  115. // SDL_imageFilterBitNegation: D = !S
  116. -int SDL_imageFilterBitNegationMMX(unsigned char *Src1, unsigned char *Dest, int length)
  117. +static int SDL_imageFilterBitNegationMMX(unsigned char *Src1, unsigned char *Dest, int length)
  118. {
  119. #ifdef USE_MMX
  120. asm volatile
  121. @@ -961,7 +964,7 @@
  122. }
  123. // SDL_imageFilterAddByteMMX: D = saturation255(S + C)
  124. -int SDL_imageFilterAddByteMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char C)
  125. +static int SDL_imageFilterAddByteMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char C)
  126. {
  127. #ifdef USE_MMX
  128. asm volatile
  129. @@ -1043,7 +1046,7 @@
  130. }
  131. // SDL_imageFilterAddUintMMX: D = saturation255((S + (uint)C), Cs=swap_32(C)
  132. -int SDL_imageFilterAddUintMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned int C, unsigned int Cs)
  133. +static int SDL_imageFilterAddUintMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned int C, unsigned int Cs)
  134. {
  135. #ifdef USE_MMX
  136. asm volatile
  137. @@ -1132,7 +1135,7 @@
  138. // SDL_imageFilterAddByteToHalfMMX: D = saturation255(S/2 + C)
  139. -int SDL_imageFilterAddByteToHalfMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char C,
  140. +static int SDL_imageFilterAddByteToHalfMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char C,
  141. unsigned char *Mask)
  142. {
  143. #ifdef USE_MMX
  144. @@ -1224,7 +1227,7 @@
  145. }
  146. // SDL_imageFilterSubByteMMX: D = saturation0(S - C)
  147. -int SDL_imageFilterSubByteMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char C)
  148. +static int SDL_imageFilterSubByteMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char C)
  149. {
  150. #ifdef USE_MMX
  151. asm volatile
  152. @@ -1306,7 +1309,7 @@
  153. }
  154. // SDL_imageFilterSubUintMMX: D = saturation0(S - (uint)C), Cs=swap_32(C)
  155. -int SDL_imageFilterSubUintMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned int C, unsigned int Cs)
  156. +static int SDL_imageFilterSubUintMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned int C, unsigned int Cs)
  157. {
  158. #ifdef USE_MMX
  159. asm volatile
  160. @@ -1394,7 +1397,7 @@
  161. // SDL_imageFilterShiftRightMMX: D = saturation0(S >> N)
  162. -int SDL_imageFilterShiftRightMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char N,
  163. +static int SDL_imageFilterShiftRightMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char N,
  164. unsigned char *Mask)
  165. {
  166. #ifdef USE_MMX
  167. @@ -1485,7 +1488,7 @@
  168. }
  169. // SDL_imageFilterShiftRightUintMMX: D = Saturation0(S >> N)
  170. -int SDL_imageFilterShiftRightUintMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char N)
  171. +static int SDL_imageFilterShiftRightUintMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char N)
  172. {
  173. #ifdef USE_MMX
  174. asm volatile
  175. @@ -1561,7 +1564,7 @@
  176. }
  177. // SDL_imageFilterMultByByteMMX: D = saturation255(S * C)
  178. -int SDL_imageFilterMultByByteMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char C)
  179. +static int SDL_imageFilterMultByByteMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char C)
  180. {
  181. #ifdef USE_MMX
  182. asm volatile
  183. @@ -1672,7 +1675,7 @@
  184. }
  185. // SDL_imageFilterShiftRightAndMultByByteMMX: D = saturation255((S >> N) * C)
  186. -int SDL_imageFilterShiftRightAndMultByByteMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char N,
  187. +static int SDL_imageFilterShiftRightAndMultByByteMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char N,
  188. unsigned char C)
  189. {
  190. #ifdef USE_MMX
  191. @@ -1773,7 +1776,7 @@
  192. }
  193. // SDL_imageFilterShiftLeftByteMMX: D = (S << N)
  194. -int SDL_imageFilterShiftLeftByteMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char N,
  195. +static int SDL_imageFilterShiftLeftByteMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char N,
  196. unsigned char *Mask)
  197. {
  198. #ifdef USE_MMX
  199. @@ -1860,7 +1863,7 @@
  200. }
  201. // SDL_imageFilterShiftLeftUintMMX: D = (S << N)
  202. -int SDL_imageFilterShiftLeftUintMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char N)
  203. +static int SDL_imageFilterShiftLeftUintMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char N)
  204. {
  205. #ifdef USE_MMX
  206. asm volatile
  207. @@ -1936,7 +1939,7 @@
  208. }
  209. // SDL_imageFilterShiftLeftMMX: D = saturation255(S << N)
  210. -int SDL_imageFilterShiftLeftMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char N)
  211. +static int SDL_imageFilterShiftLeftMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char N)
  212. {
  213. #ifdef USE_MMX
  214. asm volatile
  215. @@ -2041,7 +2044,7 @@
  216. }
  217. // SDL_imageFilterBinarizeUsingThresholdMMX: D = (S >= T) ? 255:0
  218. -int SDL_imageFilterBinarizeUsingThresholdMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char T)
  219. +static int SDL_imageFilterBinarizeUsingThresholdMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char T)
  220. {
  221. #ifdef USE_MMX
  222. asm volatile
  223. @@ -2122,7 +2125,7 @@
  224. }
  225. // SDL_imageFilterClipToRangeMMX: D = (S >= Tmin) & (S <= Tmax) S:Tmin | Tmax
  226. -int SDL_imageFilterClipToRangeMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char Tmin,
  227. +static int SDL_imageFilterClipToRangeMMX(unsigned char *Src1, unsigned char *Dest, int length, unsigned char Tmin,
  228. unsigned char Tmax)
  229. {
  230. #ifdef USE_MMX
  231. @@ -2222,7 +2225,7 @@
  232. }
  233. // SDL_imageFilterNormalizeLinearMMX: D = saturation255((Nmax - Nmin)/(Cmax - Cmin)*(S - Cmin) + Nmin)
  234. -int SDL_imageFilterNormalizeLinearMMX(unsigned char *Src1, unsigned char *Dest, int length, int Cmin, int Cmax,
  235. +static int SDL_imageFilterNormalizeLinearMMX(unsigned char *Src1, unsigned char *Dest, int length, int Cmin, int Cmax,
  236. int Nmin, int Nmax)
  237. {
  238. #ifdef USE_MMX