logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0002-Remove-invalid-at-top-level.patch (9694B)


  1. From 152e1ab7151fe8461ba4243a9d6bdea0edda7690 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Fri, 30 Apr 2021 18:56:27 -0700
  4. Subject: [PATCH] Remove invalid ';' at top-level
  5. This is not allowed in the ISO C grammar.
  6. ---
  7. src/cdef_tmpl.c | 6 +-
  8. src/film_grain_tmpl.c | 12 ++--
  9. src/looprestoration.h | 4 +-
  10. src/mc_tmpl.c | 6 +-
  11. src/x86/looprestoration_init_tmpl.c | 16 ++---
  12. src/x86/mc_init_tmpl.c | 106 ++++++++++++++--------------
  13. 6 files changed, 75 insertions(+), 75 deletions(-)
  14. diff --git a/src/cdef_tmpl.c b/src/cdef_tmpl.c
  15. index 91ac45b..7ad3cb0 100644
  16. --- a/src/cdef_tmpl.c
  17. +++ b/src/cdef_tmpl.c
  18. @@ -222,9 +222,9 @@ static void cdef_filter_block_##w##x##h##_c(pixel *const dst, \
  19. dir, damping, w, h, edges HIGHBD_TAIL_SUFFIX); \
  20. }
  21. -cdef_fn(4, 4);
  22. -cdef_fn(4, 8);
  23. -cdef_fn(8, 8);
  24. +cdef_fn(4, 4)
  25. +cdef_fn(4, 8)
  26. +cdef_fn(8, 8)
  27. static int cdef_find_dir_c(const pixel *img, const ptrdiff_t stride,
  28. unsigned *const var HIGHBD_DECL_SUFFIX)
  29. diff --git a/src/film_grain_tmpl.c b/src/film_grain_tmpl.c
  30. index 0c6a17c..0ee4e53 100644
  31. --- a/src/film_grain_tmpl.c
  32. +++ b/src/film_grain_tmpl.c
  33. @@ -149,9 +149,9 @@ static decl_generate_grain_uv_fn(generate_grain_uv_##nm##_c) { \
  34. generate_grain_uv_c(buf, buf_y, data, uv, ss_x, ss_y HIGHBD_TAIL_SUFFIX); \
  35. }
  36. -gnuv_ss_fn(420, 1, 1);
  37. -gnuv_ss_fn(422, 1, 0);
  38. -gnuv_ss_fn(444, 0, 0);
  39. +gnuv_ss_fn(420, 1, 1)
  40. +gnuv_ss_fn(422, 1, 0)
  41. +gnuv_ss_fn(444, 0, 0)
  42. // samples from the correct block of a grain LUT, while taking into account the
  43. // offsets provided by the offsets cache
  44. @@ -408,9 +408,9 @@ static decl_fguv_32x32xn_fn(fguv_32x32xn_##nm##_c) { \
  45. HIGHBD_TAIL_SUFFIX); \
  46. }
  47. -fguv_ss_fn(420, 1, 1);
  48. -fguv_ss_fn(422, 1, 0);
  49. -fguv_ss_fn(444, 0, 0);
  50. +fguv_ss_fn(420, 1, 1)
  51. +fguv_ss_fn(422, 1, 0)
  52. +fguv_ss_fn(444, 0, 0)
  53. COLD void bitfn(dav1d_film_grain_dsp_init)(Dav1dFilmGrainDSPContext *const c) {
  54. c->generate_grain_y = generate_grain_y_c;
  55. diff --git a/src/looprestoration.h b/src/looprestoration.h
  56. index a0a917f..3626aa4 100644
  57. --- a/src/looprestoration.h
  58. +++ b/src/looprestoration.h
  59. @@ -66,8 +66,8 @@ void (name)(pixel *dst, ptrdiff_t dst_stride, \
  60. const_left_pixel_row left, \
  61. const pixel *lpf, ptrdiff_t lpf_stride, \
  62. int w, int h, const LooprestorationParams *params, \
  63. - enum LrEdgeFlags edges HIGHBD_DECL_SUFFIX)
  64. -typedef decl_lr_filter_fn(*looprestorationfilter_fn);
  65. + enum LrEdgeFlags edges HIGHBD_DECL_SUFFIX);
  66. +typedef decl_lr_filter_fn(*looprestorationfilter_fn)
  67. typedef struct Dav1dLoopRestorationDSPContext {
  68. looprestorationfilter_fn wiener[2]; /* 7-tap, 5-tap */
  69. diff --git a/src/mc_tmpl.c b/src/mc_tmpl.c
  70. index f8d3e3b..374db4c 100644
  71. --- a/src/mc_tmpl.c
  72. +++ b/src/mc_tmpl.c
  73. @@ -735,9 +735,9 @@ static void w_mask_##ssn##_c(pixel *const dst, const ptrdiff_t dst_stride, \
  74. HIGHBD_TAIL_SUFFIX); \
  75. }
  76. -w_mask_fns(444, 0, 0);
  77. -w_mask_fns(422, 1, 0);
  78. -w_mask_fns(420, 1, 1);
  79. +w_mask_fns(444, 0, 0)
  80. +w_mask_fns(422, 1, 0)
  81. +w_mask_fns(420, 1, 1)
  82. #undef w_mask_fns
  83. diff --git a/src/x86/looprestoration_init_tmpl.c b/src/x86/looprestoration_init_tmpl.c
  84. index ae64cc8..c92b7cc 100644
  85. --- a/src/x86/looprestoration_init_tmpl.c
  86. +++ b/src/x86/looprestoration_init_tmpl.c
  87. @@ -31,19 +31,19 @@
  88. #include "common/intops.h"
  89. #define decl_wiener_filter_fns(ext) \
  90. -decl_lr_filter_fn(BF(dav1d_wiener_filter7, ext)); \
  91. +decl_lr_filter_fn(BF(dav1d_wiener_filter7, ext)) \
  92. decl_lr_filter_fn(BF(dav1d_wiener_filter5, ext))
  93. #define decl_sgr_filter_fns(ext) \
  94. -decl_lr_filter_fn(BF(dav1d_sgr_filter_5x5, ext)); \
  95. -decl_lr_filter_fn(BF(dav1d_sgr_filter_3x3, ext)); \
  96. +decl_lr_filter_fn(BF(dav1d_sgr_filter_5x5, ext)) \
  97. +decl_lr_filter_fn(BF(dav1d_sgr_filter_3x3, ext)) \
  98. decl_lr_filter_fn(BF(dav1d_sgr_filter_mix, ext))
  99. -decl_wiener_filter_fns(sse2);
  100. -decl_wiener_filter_fns(ssse3);
  101. -decl_wiener_filter_fns(avx2);
  102. -decl_sgr_filter_fns(ssse3);
  103. -decl_sgr_filter_fns(avx2);
  104. +decl_wiener_filter_fns(sse2)
  105. +decl_wiener_filter_fns(ssse3)
  106. +decl_wiener_filter_fns(avx2)
  107. +decl_sgr_filter_fns(ssse3)
  108. +decl_sgr_filter_fns(avx2)
  109. COLD void bitfn(dav1d_loop_restoration_dsp_init_x86)(Dav1dLoopRestorationDSPContext *const c,
  110. const int bpc)
  111. diff --git a/src/x86/mc_init_tmpl.c b/src/x86/mc_init_tmpl.c
  112. index 3991004..0bd6188 100644
  113. --- a/src/x86/mc_init_tmpl.c
  114. +++ b/src/x86/mc_init_tmpl.c
  115. @@ -42,68 +42,68 @@
  116. #define init_mct_scaled_fn(type, name, suffix) \
  117. c->mct_scaled[type] = BF(dav1d_prep_##name, suffix)
  118. -decl_fn(mc, dav1d_put_8tap_regular);
  119. -decl_fn(mc, dav1d_put_8tap_regular_smooth);
  120. -decl_fn(mc, dav1d_put_8tap_regular_sharp);
  121. -decl_fn(mc, dav1d_put_8tap_smooth);
  122. -decl_fn(mc, dav1d_put_8tap_smooth_regular);
  123. -decl_fn(mc, dav1d_put_8tap_smooth_sharp);
  124. -decl_fn(mc, dav1d_put_8tap_sharp);
  125. -decl_fn(mc, dav1d_put_8tap_sharp_regular);
  126. -decl_fn(mc, dav1d_put_8tap_sharp_smooth);
  127. -decl_fn(mc, dav1d_put_bilin);
  128. +decl_fn(mc, dav1d_put_8tap_regular)
  129. +decl_fn(mc, dav1d_put_8tap_regular_smooth)
  130. +decl_fn(mc, dav1d_put_8tap_regular_sharp)
  131. +decl_fn(mc, dav1d_put_8tap_smooth)
  132. +decl_fn(mc, dav1d_put_8tap_smooth_regular)
  133. +decl_fn(mc, dav1d_put_8tap_smooth_sharp)
  134. +decl_fn(mc, dav1d_put_8tap_sharp)
  135. +decl_fn(mc, dav1d_put_8tap_sharp_regular)
  136. +decl_fn(mc, dav1d_put_8tap_sharp_smooth)
  137. +decl_fn(mc, dav1d_put_bilin)
  138. -decl_fn(mct, dav1d_prep_8tap_regular);
  139. -decl_fn(mct, dav1d_prep_8tap_regular_smooth);
  140. -decl_fn(mct, dav1d_prep_8tap_regular_sharp);
  141. -decl_fn(mct, dav1d_prep_8tap_smooth);
  142. -decl_fn(mct, dav1d_prep_8tap_smooth_regular);
  143. -decl_fn(mct, dav1d_prep_8tap_smooth_sharp);
  144. -decl_fn(mct, dav1d_prep_8tap_sharp);
  145. -decl_fn(mct, dav1d_prep_8tap_sharp_regular);
  146. -decl_fn(mct, dav1d_prep_8tap_sharp_smooth);
  147. -decl_fn(mct, dav1d_prep_bilin);
  148. +decl_fn(mct, dav1d_prep_8tap_regular)
  149. +decl_fn(mct, dav1d_prep_8tap_regular_smooth)
  150. +decl_fn(mct, dav1d_prep_8tap_regular_sharp)
  151. +decl_fn(mct, dav1d_prep_8tap_smooth)
  152. +decl_fn(mct, dav1d_prep_8tap_smooth_regular)
  153. +decl_fn(mct, dav1d_prep_8tap_smooth_sharp)
  154. +decl_fn(mct, dav1d_prep_8tap_sharp)
  155. +decl_fn(mct, dav1d_prep_8tap_sharp_regular)
  156. +decl_fn(mct, dav1d_prep_8tap_sharp_smooth)
  157. +decl_fn(mct, dav1d_prep_bilin)
  158. -decl_fn(mc_scaled, dav1d_put_8tap_scaled_regular);
  159. -decl_fn(mc_scaled, dav1d_put_8tap_scaled_regular_smooth);
  160. -decl_fn(mc_scaled, dav1d_put_8tap_scaled_regular_sharp);
  161. -decl_fn(mc_scaled, dav1d_put_8tap_scaled_smooth);
  162. -decl_fn(mc_scaled, dav1d_put_8tap_scaled_smooth_regular);
  163. -decl_fn(mc_scaled, dav1d_put_8tap_scaled_smooth_sharp);
  164. -decl_fn(mc_scaled, dav1d_put_8tap_scaled_sharp);
  165. -decl_fn(mc_scaled, dav1d_put_8tap_scaled_sharp_regular);
  166. -decl_fn(mc_scaled, dav1d_put_8tap_scaled_sharp_smooth);
  167. -decl_fn(mc_scaled, dav1d_put_bilin_scaled);
  168. +decl_fn(mc_scaled, dav1d_put_8tap_scaled_regular)
  169. +decl_fn(mc_scaled, dav1d_put_8tap_scaled_regular_smooth)
  170. +decl_fn(mc_scaled, dav1d_put_8tap_scaled_regular_sharp)
  171. +decl_fn(mc_scaled, dav1d_put_8tap_scaled_smooth)
  172. +decl_fn(mc_scaled, dav1d_put_8tap_scaled_smooth_regular)
  173. +decl_fn(mc_scaled, dav1d_put_8tap_scaled_smooth_sharp)
  174. +decl_fn(mc_scaled, dav1d_put_8tap_scaled_sharp)
  175. +decl_fn(mc_scaled, dav1d_put_8tap_scaled_sharp_regular)
  176. +decl_fn(mc_scaled, dav1d_put_8tap_scaled_sharp_smooth)
  177. +decl_fn(mc_scaled, dav1d_put_bilin_scaled)
  178. -decl_fn(mct_scaled, dav1d_prep_8tap_scaled_regular);
  179. -decl_fn(mct_scaled, dav1d_prep_8tap_scaled_regular_smooth);
  180. -decl_fn(mct_scaled, dav1d_prep_8tap_scaled_regular_sharp);
  181. -decl_fn(mct_scaled, dav1d_prep_8tap_scaled_smooth);
  182. -decl_fn(mct_scaled, dav1d_prep_8tap_scaled_smooth_regular);
  183. -decl_fn(mct_scaled, dav1d_prep_8tap_scaled_smooth_sharp);
  184. -decl_fn(mct_scaled, dav1d_prep_8tap_scaled_sharp);
  185. -decl_fn(mct_scaled, dav1d_prep_8tap_scaled_sharp_regular);
  186. -decl_fn(mct_scaled, dav1d_prep_8tap_scaled_sharp_smooth);
  187. -decl_fn(mct_scaled, dav1d_prep_bilin_scaled);
  188. +decl_fn(mct_scaled, dav1d_prep_8tap_scaled_regular)
  189. +decl_fn(mct_scaled, dav1d_prep_8tap_scaled_regular_smooth)
  190. +decl_fn(mct_scaled, dav1d_prep_8tap_scaled_regular_sharp)
  191. +decl_fn(mct_scaled, dav1d_prep_8tap_scaled_smooth)
  192. +decl_fn(mct_scaled, dav1d_prep_8tap_scaled_smooth_regular)
  193. +decl_fn(mct_scaled, dav1d_prep_8tap_scaled_smooth_sharp)
  194. +decl_fn(mct_scaled, dav1d_prep_8tap_scaled_sharp)
  195. +decl_fn(mct_scaled, dav1d_prep_8tap_scaled_sharp_regular)
  196. +decl_fn(mct_scaled, dav1d_prep_8tap_scaled_sharp_smooth)
  197. +decl_fn(mct_scaled, dav1d_prep_bilin_scaled)
  198. -decl_fn(avg, dav1d_avg);
  199. -decl_fn(w_avg, dav1d_w_avg);
  200. -decl_fn(mask, dav1d_mask);
  201. -decl_fn(w_mask, dav1d_w_mask_420);
  202. -decl_fn(w_mask, dav1d_w_mask_422);
  203. -decl_fn(w_mask, dav1d_w_mask_444);
  204. -decl_fn(blend, dav1d_blend);
  205. -decl_fn(blend_dir, dav1d_blend_v);
  206. -decl_fn(blend_dir, dav1d_blend_h);
  207. +decl_fn(avg, dav1d_avg)
  208. +decl_fn(w_avg, dav1d_w_avg)
  209. +decl_fn(mask, dav1d_mask)
  210. +decl_fn(w_mask, dav1d_w_mask_420)
  211. +decl_fn(w_mask, dav1d_w_mask_422)
  212. +decl_fn(w_mask, dav1d_w_mask_444)
  213. +decl_fn(blend, dav1d_blend)
  214. +decl_fn(blend_dir, dav1d_blend_v)
  215. +decl_fn(blend_dir, dav1d_blend_h)
  216. -decl_fn(warp8x8, dav1d_warp_affine_8x8);
  217. +decl_fn(warp8x8, dav1d_warp_affine_8x8)
  218. decl_warp8x8_fn(BF(dav1d_warp_affine_8x8, sse4));
  219. -decl_fn(warp8x8t, dav1d_warp_affine_8x8t);
  220. +decl_fn(warp8x8t, dav1d_warp_affine_8x8t)
  221. decl_warp8x8t_fn(BF(dav1d_warp_affine_8x8t, sse4));
  222. -decl_fn(emu_edge, dav1d_emu_edge);
  223. +decl_fn(emu_edge, dav1d_emu_edge)
  224. -decl_fn(resize, dav1d_resize);
  225. +decl_fn(resize, dav1d_resize)
  226. COLD void bitfn(dav1d_mc_dsp_init_x86)(Dav1dMCDSPContext *const c) {
  227. const unsigned flags = dav1d_get_cpu_flags();
  228. --
  229. 2.32.0