aom_dsp: apply clang-format v5.0.0

Change-Id: I3733c974654712b3ca56f541bb642af9e8cdd504
diff --git a/aom_dsp/grain_synthesis.c b/aom_dsp/grain_synthesis.c
index bb9d5a3..054e466 100644
--- a/aom_dsp/grain_synthesis.c
+++ b/aom_dsp/grain_synthesis.c
@@ -401,11 +401,10 @@
     for (int j = left_pad; j < luma_block_size_x - right_pad; j++) {
       int wsum = 0;
       for (int pos = 0; pos < num_pos_luma; pos++) {
-        wsum = wsum +
-               params->ar_coeffs_y[pos] *
-                   luma_grain_block[(i + pred_pos_luma[pos][0]) *
-                                        luma_grain_stride +
-                                    j + pred_pos_luma[pos][1]];
+        wsum = wsum + params->ar_coeffs_y[pos] *
+                          luma_grain_block[(i + pred_pos_luma[pos][0]) *
+                                               luma_grain_stride +
+                                           j + pred_pos_luma[pos][1]];
       }
       luma_grain_block[i * luma_grain_stride + j] =
           clamp(luma_grain_block[i * luma_grain_stride + j] +
@@ -445,16 +444,14 @@
       int wsum_cr = 0;
       for (int pos = 0; pos < num_pos_chroma; pos++) {
         if (pred_pos_chroma[pos][2] == 0) {
-          wsum_cb = wsum_cb +
-                    params->ar_coeffs_cb[pos] *
-                        cb_grain_block[(i + pred_pos_chroma[pos][0]) *
-                                           chroma_grain_stride +
-                                       j + pred_pos_chroma[pos][1]];
-          wsum_cr = wsum_cr +
-                    params->ar_coeffs_cr[pos] *
-                        cr_grain_block[(i + pred_pos_chroma[pos][0]) *
-                                           chroma_grain_stride +
-                                       j + pred_pos_chroma[pos][1]];
+          wsum_cb = wsum_cb + params->ar_coeffs_cb[pos] *
+                                  cb_grain_block[(i + pred_pos_chroma[pos][0]) *
+                                                     chroma_grain_stride +
+                                                 j + pred_pos_chroma[pos][1]];
+          wsum_cr = wsum_cr + params->ar_coeffs_cr[pos] *
+                                  cr_grain_block[(i + pred_pos_chroma[pos][0]) *
+                                                     chroma_grain_stride +
+                                                 j + pred_pos_chroma[pos][1]];
         } else if (pred_pos_chroma[pos][2] == 1) {
           int av_luma =
               (luma_grain_block[(((i - top_pad) << 1) + top_pad) *
diff --git a/aom_dsp/intrapred_common.h b/aom_dsp/intrapred_common.h
index 96da49b..e61b94d 100644
--- a/aom_dsp/intrapred_common.h
+++ b/aom_dsp/intrapred_common.h
@@ -25,6 +25,7 @@
 #define MAX_BLOCK_DIM 32
 #endif  // CONFIG_TX64X64
 
+/* clang-format off */
 static const uint8_t sm_weight_arrays[2 * MAX_BLOCK_DIM] = {
   // Unused, because we always offset by bs, which is at least 2.
   0, 0,
@@ -47,5 +48,6 @@
   13, 12, 10, 9, 8, 7, 6, 6, 5, 5, 4, 4, 4,
 #endif  // CONFIG_TX64X64
 };
+/* clang-format on */
 
 #endif  // _AOM_DSP_INTRAPRED_COMMON_H
diff --git a/aom_dsp/mips/itrans32_dspr2.c b/aom_dsp/mips/itrans32_dspr2.c
index fa77032..23049ef 100644
--- a/aom_dsp/mips/itrans32_dspr2.c
+++ b/aom_dsp/mips/itrans32_dspr2.c
@@ -650,7 +650,7 @@
           [cospi_16_64] "r"(cospi_16_64), [cospi_24_64] "r"(cospi_24_64),
           [cospi_8_64] "r"(cospi_8_64)
 
-            );
+    );
 
     __asm__ __volatile__(
         "lh       %[load1],             8(%[input])                     \n\t"
diff --git a/aom_dsp/prob.h b/aom_dsp/prob.h
index 916b751..e72f764 100644
--- a/aom_dsp/prob.h
+++ b/aom_dsp/prob.h
@@ -114,25 +114,27 @@
                ((CDF_INIT_TOP - 2)) +                      \
            1)                                              \
   , AOM_ICDF(CDF_PROB_TOP), 0
-#define AOM_CDF3(a0, a1)                                     \
-  AOM_ICDF((((a0)-1) * ((CDF_INIT_TOP >> CDF_SHIFT) - 3) +   \
-            ((CDF_INIT_TOP - 3) >> 1)) /                     \
-               ((CDF_INIT_TOP - 3)) +                        \
-           1)                                                \
-  , AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 3) + \
-              ((CDF_INIT_TOP - 3) >> 1)) /                   \
-                 ((CDF_INIT_TOP - 3)) +                      \
-             2),                                             \
+#define AOM_CDF3(a0, a1)                                       \
+  AOM_ICDF((((a0)-1) * ((CDF_INIT_TOP >> CDF_SHIFT) - 3) +     \
+            ((CDF_INIT_TOP - 3) >> 1)) /                       \
+               ((CDF_INIT_TOP - 3)) +                          \
+           1)                                                  \
+  ,                                                            \
+      AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 3) + \
+                ((CDF_INIT_TOP - 3) >> 1)) /                   \
+                   ((CDF_INIT_TOP - 3)) +                      \
+               2),                                             \
       AOM_ICDF(CDF_PROB_TOP), 0
 #define AOM_CDF4(a0, a1, a2)                                   \
   AOM_ICDF((((a0)-1) * ((CDF_INIT_TOP >> CDF_SHIFT) - 4) +     \
             ((CDF_INIT_TOP - 4) >> 1)) /                       \
                ((CDF_INIT_TOP - 4)) +                          \
            1)                                                  \
-  , AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 4) +   \
-              ((CDF_INIT_TOP - 4) >> 1)) /                     \
-                 ((CDF_INIT_TOP - 4)) +                        \
-             2),                                               \
+  ,                                                            \
+      AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 4) + \
+                ((CDF_INIT_TOP - 4) >> 1)) /                   \
+                   ((CDF_INIT_TOP - 4)) +                      \
+               2),                                             \
       AOM_ICDF((((a2)-3) * ((CDF_INIT_TOP >> CDF_SHIFT) - 4) + \
                 ((CDF_INIT_TOP - 4) >> 1)) /                   \
                    ((CDF_INIT_TOP - 4)) +                      \
@@ -143,10 +145,11 @@
             ((CDF_INIT_TOP - 5) >> 1)) /                       \
                ((CDF_INIT_TOP - 5)) +                          \
            1)                                                  \
-  , AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 5) +   \
-              ((CDF_INIT_TOP - 5) >> 1)) /                     \
-                 ((CDF_INIT_TOP - 5)) +                        \
-             2),                                               \
+  ,                                                            \
+      AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 5) + \
+                ((CDF_INIT_TOP - 5) >> 1)) /                   \
+                   ((CDF_INIT_TOP - 5)) +                      \
+               2),                                             \
       AOM_ICDF((((a2)-3) * ((CDF_INIT_TOP >> CDF_SHIFT) - 5) + \
                 ((CDF_INIT_TOP - 5) >> 1)) /                   \
                    ((CDF_INIT_TOP - 5)) +                      \
@@ -161,10 +164,11 @@
             ((CDF_INIT_TOP - 6) >> 1)) /                       \
                ((CDF_INIT_TOP - 6)) +                          \
            1)                                                  \
-  , AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 6) +   \
-              ((CDF_INIT_TOP - 6) >> 1)) /                     \
-                 ((CDF_INIT_TOP - 6)) +                        \
-             2),                                               \
+  ,                                                            \
+      AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 6) + \
+                ((CDF_INIT_TOP - 6) >> 1)) /                   \
+                   ((CDF_INIT_TOP - 6)) +                      \
+               2),                                             \
       AOM_ICDF((((a2)-3) * ((CDF_INIT_TOP >> CDF_SHIFT) - 6) + \
                 ((CDF_INIT_TOP - 6) >> 1)) /                   \
                    ((CDF_INIT_TOP - 6)) +                      \
@@ -183,10 +187,11 @@
             ((CDF_INIT_TOP - 7) >> 1)) /                       \
                ((CDF_INIT_TOP - 7)) +                          \
            1)                                                  \
-  , AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 7) +   \
-              ((CDF_INIT_TOP - 7) >> 1)) /                     \
-                 ((CDF_INIT_TOP - 7)) +                        \
-             2),                                               \
+  ,                                                            \
+      AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 7) + \
+                ((CDF_INIT_TOP - 7) >> 1)) /                   \
+                   ((CDF_INIT_TOP - 7)) +                      \
+               2),                                             \
       AOM_ICDF((((a2)-3) * ((CDF_INIT_TOP >> CDF_SHIFT) - 7) + \
                 ((CDF_INIT_TOP - 7) >> 1)) /                   \
                    ((CDF_INIT_TOP - 7)) +                      \
@@ -209,10 +214,11 @@
             ((CDF_INIT_TOP - 8) >> 1)) /                       \
                ((CDF_INIT_TOP - 8)) +                          \
            1)                                                  \
-  , AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 8) +   \
-              ((CDF_INIT_TOP - 8) >> 1)) /                     \
-                 ((CDF_INIT_TOP - 8)) +                        \
-             2),                                               \
+  ,                                                            \
+      AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 8) + \
+                ((CDF_INIT_TOP - 8) >> 1)) /                   \
+                   ((CDF_INIT_TOP - 8)) +                      \
+               2),                                             \
       AOM_ICDF((((a2)-3) * ((CDF_INIT_TOP >> CDF_SHIFT) - 8) + \
                 ((CDF_INIT_TOP - 8) >> 1)) /                   \
                    ((CDF_INIT_TOP - 8)) +                      \
@@ -239,10 +245,11 @@
             ((CDF_INIT_TOP - 9) >> 1)) /                       \
                ((CDF_INIT_TOP - 9)) +                          \
            1)                                                  \
-  , AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 9) +   \
-              ((CDF_INIT_TOP - 9) >> 1)) /                     \
-                 ((CDF_INIT_TOP - 9)) +                        \
-             2),                                               \
+  ,                                                            \
+      AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 9) + \
+                ((CDF_INIT_TOP - 9) >> 1)) /                   \
+                   ((CDF_INIT_TOP - 9)) +                      \
+               2),                                             \
       AOM_ICDF((((a2)-3) * ((CDF_INIT_TOP >> CDF_SHIFT) - 9) + \
                 ((CDF_INIT_TOP - 9) >> 1)) /                   \
                    ((CDF_INIT_TOP - 9)) +                      \
@@ -273,10 +280,11 @@
             ((CDF_INIT_TOP - 10) >> 1)) /                       \
                ((CDF_INIT_TOP - 10)) +                          \
            1)                                                   \
-  , AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 10) +   \
-              ((CDF_INIT_TOP - 10) >> 1)) /                     \
-                 ((CDF_INIT_TOP - 10)) +                        \
-             2),                                                \
+  ,                                                             \
+      AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 10) + \
+                ((CDF_INIT_TOP - 10) >> 1)) /                   \
+                   ((CDF_INIT_TOP - 10)) +                      \
+               2),                                              \
       AOM_ICDF((((a2)-3) * ((CDF_INIT_TOP >> CDF_SHIFT) - 10) + \
                 ((CDF_INIT_TOP - 10) >> 1)) /                   \
                    ((CDF_INIT_TOP - 10)) +                      \
@@ -311,10 +319,11 @@
             ((CDF_INIT_TOP - 11) >> 1)) /                        \
                ((CDF_INIT_TOP - 11)) +                           \
            1)                                                    \
-  , AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 11) +    \
-              ((CDF_INIT_TOP - 11) >> 1)) /                      \
-                 ((CDF_INIT_TOP - 11)) +                         \
-             2),                                                 \
+  ,                                                              \
+      AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 11) +  \
+                ((CDF_INIT_TOP - 11) >> 1)) /                    \
+                   ((CDF_INIT_TOP - 11)) +                       \
+               2),                                               \
       AOM_ICDF((((a2)-3) * ((CDF_INIT_TOP >> CDF_SHIFT) - 11) +  \
                 ((CDF_INIT_TOP - 11) >> 1)) /                    \
                    ((CDF_INIT_TOP - 11)) +                       \
@@ -353,10 +362,11 @@
             ((CDF_INIT_TOP - 12) >> 1)) /                         \
                ((CDF_INIT_TOP - 12)) +                            \
            1)                                                     \
-  , AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 12) +     \
-              ((CDF_INIT_TOP - 12) >> 1)) /                       \
-                 ((CDF_INIT_TOP - 12)) +                          \
-             2),                                                  \
+  ,                                                               \
+      AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 12) +   \
+                ((CDF_INIT_TOP - 12) >> 1)) /                     \
+                   ((CDF_INIT_TOP - 12)) +                        \
+               2),                                                \
       AOM_ICDF((((a2)-3) * ((CDF_INIT_TOP >> CDF_SHIFT) - 12) +   \
                 ((CDF_INIT_TOP - 12) >> 1)) /                     \
                    ((CDF_INIT_TOP - 12)) +                        \
@@ -399,10 +409,11 @@
             ((CDF_INIT_TOP - 13) >> 1)) /                           \
                ((CDF_INIT_TOP - 13)) +                              \
            1)                                                       \
-  , AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 13) +       \
-              ((CDF_INIT_TOP - 13) >> 1)) /                         \
-                 ((CDF_INIT_TOP - 13)) +                            \
-             2),                                                    \
+  ,                                                                 \
+      AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 13) +     \
+                ((CDF_INIT_TOP - 13) >> 1)) /                       \
+                   ((CDF_INIT_TOP - 13)) +                          \
+               2),                                                  \
       AOM_ICDF((((a2)-3) * ((CDF_INIT_TOP >> CDF_SHIFT) - 13) +     \
                 ((CDF_INIT_TOP - 13) >> 1)) /                       \
                    ((CDF_INIT_TOP - 13)) +                          \
@@ -449,10 +460,11 @@
             ((CDF_INIT_TOP - 14) >> 1)) /                                \
                ((CDF_INIT_TOP - 14)) +                                   \
            1)                                                            \
-  , AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 14) +            \
-              ((CDF_INIT_TOP - 14) >> 1)) /                              \
-                 ((CDF_INIT_TOP - 14)) +                                 \
-             2),                                                         \
+  ,                                                                      \
+      AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 14) +          \
+                ((CDF_INIT_TOP - 14) >> 1)) /                            \
+                   ((CDF_INIT_TOP - 14)) +                               \
+               2),                                                       \
       AOM_ICDF((((a2)-3) * ((CDF_INIT_TOP >> CDF_SHIFT) - 14) +          \
                 ((CDF_INIT_TOP - 14) >> 1)) /                            \
                    ((CDF_INIT_TOP - 14)) +                               \
@@ -503,10 +515,11 @@
             ((CDF_INIT_TOP - 15) >> 1)) /                                     \
                ((CDF_INIT_TOP - 15)) +                                        \
            1)                                                                 \
-  , AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 15) +                 \
-              ((CDF_INIT_TOP - 15) >> 1)) /                                   \
-                 ((CDF_INIT_TOP - 15)) +                                      \
-             2),                                                              \
+  ,                                                                           \
+      AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 15) +               \
+                ((CDF_INIT_TOP - 15) >> 1)) /                                 \
+                   ((CDF_INIT_TOP - 15)) +                                    \
+               2),                                                            \
       AOM_ICDF((((a2)-3) * ((CDF_INIT_TOP >> CDF_SHIFT) - 15) +               \
                 ((CDF_INIT_TOP - 15) >> 1)) /                                 \
                    ((CDF_INIT_TOP - 15)) +                                    \
@@ -562,10 +575,11 @@
             ((CDF_INIT_TOP - 16) >> 1)) /                                     \
                ((CDF_INIT_TOP - 16)) +                                        \
            1)                                                                 \
-  , AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 16) +                 \
-              ((CDF_INIT_TOP - 16) >> 1)) /                                   \
-                 ((CDF_INIT_TOP - 16)) +                                      \
-             2),                                                              \
+  ,                                                                           \
+      AOM_ICDF((((a1)-2) * ((CDF_INIT_TOP >> CDF_SHIFT) - 16) +               \
+                ((CDF_INIT_TOP - 16) >> 1)) /                                 \
+                   ((CDF_INIT_TOP - 16)) +                                    \
+               2),                                                            \
       AOM_ICDF((((a2)-3) * ((CDF_INIT_TOP >> CDF_SHIFT) - 16) +               \
                 ((CDF_INIT_TOP - 16) >> 1)) /                                 \
                    ((CDF_INIT_TOP - 16)) +                                    \
diff --git a/aom_dsp/simd/v128_intrinsics_arm.h b/aom_dsp/simd/v128_intrinsics_arm.h
index 0377d4c..88c64fa 100644
--- a/aom_dsp/simd/v128_intrinsics_arm.h
+++ b/aom_dsp/simd/v128_intrinsics_arm.h
@@ -98,7 +98,9 @@
   return vreinterpretq_s64_s32(vpaddlq_s16(vreinterpretq_s16_s64(a)));
 }
 
-typedef struct { sad64_internal hi, lo; } sad128_internal;
+typedef struct {
+  sad64_internal hi, lo;
+} sad128_internal;
 
 SIMD_INLINE sad128_internal v128_sad_u8_init() {
   sad128_internal s;
@@ -120,7 +122,9 @@
   return (uint32_t)(v64_sad_u8_sum(s.hi) + v64_sad_u8_sum(s.lo));
 }
 
-typedef struct { ssd64_internal hi, lo; } ssd128_internal;
+typedef struct {
+  ssd64_internal hi, lo;
+} ssd128_internal;
 
 SIMD_INLINE ssd128_internal v128_ssd_u8_init() {
   ssd128_internal s;
@@ -489,18 +493,21 @@
 }
 
 SIMD_INLINE v128 v128_shl_8(v128 a, unsigned int c) {
-  return (c > 7) ? v128_zero() : vreinterpretq_s64_u8(vshlq_u8(
-                                     vreinterpretq_u8_s64(a), vdupq_n_s8(c)));
+  return (c > 7) ? v128_zero()
+                 : vreinterpretq_s64_u8(
+                       vshlq_u8(vreinterpretq_u8_s64(a), vdupq_n_s8(c)));
 }
 
 SIMD_INLINE v128 v128_shr_u8(v128 a, unsigned int c) {
-  return (c > 7) ? v128_zero() : vreinterpretq_s64_u8(vshlq_u8(
-                                     vreinterpretq_u8_s64(a), vdupq_n_s8(-c)));
+  return (c > 7) ? v128_zero()
+                 : vreinterpretq_s64_u8(
+                       vshlq_u8(vreinterpretq_u8_s64(a), vdupq_n_s8(-c)));
 }
 
 SIMD_INLINE v128 v128_shr_s8(v128 a, unsigned int c) {
-  return (c > 7) ? v128_ones() : vreinterpretq_s64_s8(vshlq_s8(
-                                     vreinterpretq_s8_s64(a), vdupq_n_s8(-c)));
+  return (c > 7) ? v128_ones()
+                 : vreinterpretq_s64_s8(
+                       vshlq_s8(vreinterpretq_s8_s64(a), vdupq_n_s8(-c)));
 }
 
 SIMD_INLINE v128 v128_shl_16(v128 a, unsigned int c) {
diff --git a/aom_dsp/simd/v256_intrinsics_v128.h b/aom_dsp/simd/v256_intrinsics_v128.h
index cbea55c..982312f 100644
--- a/aom_dsp/simd/v256_intrinsics_v128.h
+++ b/aom_dsp/simd/v256_intrinsics_v128.h
@@ -20,7 +20,9 @@
 #include "./v128_intrinsics.h"
 #endif
 
-typedef struct { v128 lo, hi; } v256;
+typedef struct {
+  v128 lo, hi;
+} v256;
 
 SIMD_INLINE uint32_t v256_low_u32(v256 a) { return v128_low_u32(a.lo); }
 
diff --git a/aom_dsp/x86/convolve_avx2.h b/aom_dsp/x86/convolve_avx2.h
index 80a6067..bcc28a7 100644
--- a/aom_dsp/x86/convolve_avx2.h
+++ b/aom_dsp/x86/convolve_avx2.h
@@ -1,13 +1,13 @@
 /*
-* Copyright (c) 2018, Alliance for Open Media. All rights reserved
-*
-* This source code is subject to the terms of the BSD 2 Clause License and
-* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
-* was not distributed with this source code in the LICENSE file, you can
-* obtain it at www.aomedia.org/license/software. If the Alliance for Open
-* Media Patent License 1.0 was not distributed with this source code in the
-* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
-*/
+ * Copyright (c) 2018, Alliance for Open Media. All rights reserved
+ *
+ * This source code is subject to the terms of the BSD 2 Clause License and
+ * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
+ * was not distributed with this source code in the LICENSE file, you can
+ * obtain it at www.aomedia.org/license/software. If the Alliance for Open
+ * Media Patent License 1.0 was not distributed with this source code in the
+ * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
+ */
 
 #ifndef AOM_DSP_X86_CONVOLVE_AVX2_H_
 #define AOM_DSP_X86_CONVOLVE_AVX2_H_
diff --git a/aom_dsp/x86/fwd_txfm_impl_sse2.h b/aom_dsp/x86/fwd_txfm_impl_sse2.h
index 7bb1db7..20931db 100644
--- a/aom_dsp/x86/fwd_txfm_impl_sse2.h
+++ b/aom_dsp/x86/fwd_txfm_impl_sse2.h
@@ -779,6 +779,7 @@
             return;
           }
 #endif  // DCT_HIGH_BIT_DEPTH
+
           // Interleave to do the multiply by constants which gets us
           // into 32 bits.
           {
@@ -835,6 +836,7 @@
               return;
             }
 #endif  // DCT_HIGH_BIT_DEPTH
+
             // Interleave to do the multiply by constants which gets us
             // into 32 bits.
             {
diff --git a/aom_dsp/x86/highbd_convolve_avx2.c b/aom_dsp/x86/highbd_convolve_avx2.c
index 133640e..35b0b4f 100644
--- a/aom_dsp/x86/highbd_convolve_avx2.c
+++ b/aom_dsp/x86/highbd_convolve_avx2.c
@@ -192,11 +192,11 @@
   }
 }
 
+#define CONV8_ROUNDING_BITS (7)
+
 // -----------------------------------------------------------------------------
 // Horizontal and vertical filtering
 
-#define CONV8_ROUNDING_BITS (7)
-
 static const uint8_t signal_pattern_0[32] = { 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6,
                                               7, 6, 7, 8, 9, 0, 1, 2, 3, 2, 3,
                                               4, 5, 4, 5, 6, 7, 6, 7, 8, 9 };
diff --git a/aom_dsp/x86/intrapred_sse2.c b/aom_dsp/x86/intrapred_sse2.c
index f6d1363..bf08092 100644
--- a/aom_dsp/x86/intrapred_sse2.c
+++ b/aom_dsp/x86/intrapred_sse2.c
@@ -902,7 +902,7 @@
 
 // -----------------------------------------------------------------------------
 // D63E_PRED
-
+//
 #define D63E_STORE_4X4                        \
   do {                                        \
     *(uint32_t *)dst = _mm_cvtsi128_si32(y0); \
diff --git a/aom_dsp/x86/loopfilter_sse2.c b/aom_dsp/x86/loopfilter_sse2.c
index 5972dbc..397011d 100644
--- a/aom_dsp/x86/loopfilter_sse2.c
+++ b/aom_dsp/x86/loopfilter_sse2.c
@@ -2213,7 +2213,7 @@
 
   // Transpose back
   transpose(src, 16, dst, p, 2);
-#else  // CONFIG_PARALLEL_DEBLOCKING
+#else   // CONFIG_PARALLEL_DEBLOCKING
   transpose16x4(s - 2, p, t_dst + 16 * 2, 16);
 #endif  // !CONFIG_PARALLEL_DEBLOCKING
 }