summaryrefslogtreecommitdiff
path: root/vp9/encoder/mips/msa
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2019-03-19 17:16:41 -0700
committerJerome Jiang <jianj@google.com>2019-03-19 17:49:41 -0700
commitaa04b6f9a7475e9d9457dfc5bf441faf15efc466 (patch)
tree10bb2ce356e613e4ba8c10c862c29a79323a5e58 /vp9/encoder/mips/msa
parent60f76593e344dcef468752b49cf79be19b5adb0d (diff)
downloadlibvpx-aa04b6f9a7475e9d9457dfc5bf441faf15efc466.tar
libvpx-aa04b6f9a7475e9d9457dfc5bf441faf15efc466.tar.gz
libvpx-aa04b6f9a7475e9d9457dfc5bf441faf15efc466.tar.bz2
libvpx-aa04b6f9a7475e9d9457dfc5bf441faf15efc466.zip
Wrap macro definition in do-while(0)
Change-Id: Id654a48d2fa40355552d7267e58461e6cc1c6998
Diffstat (limited to 'vp9/encoder/mips/msa')
-rw-r--r--vp9/encoder/mips/msa/vp9_fdct_msa.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/vp9/encoder/mips/msa/vp9_fdct_msa.h b/vp9/encoder/mips/msa/vp9_fdct_msa.h
index fa1af2fc5..564c879fb 100644
--- a/vp9/encoder/mips/msa/vp9_fdct_msa.h
+++ b/vp9/encoder/mips/msa/vp9_fdct_msa.h
@@ -17,7 +17,7 @@
#define VP9_ADST8(in0, in1, in2, in3, in4, in5, in6, in7, out0, out1, out2, \
out3, out4, out5, out6, out7) \
- { \
+ do { \
v8i16 cnst0_m, cnst1_m, cnst2_m, cnst3_m, cnst4_m; \
v8i16 vec0_m, vec1_m, vec2_m, vec3_m, s0_m, s1_m; \
v8i16 coeff0_m = { cospi_2_64, cospi_6_64, cospi_10_64, cospi_14_64, \
@@ -77,10 +77,10 @@
out1 = -out1; \
out3 = -out3; \
out5 = -out5; \
- }
+ } while (0)
#define VP9_FADST4(in0, in1, in2, in3, out0, out1, out2, out3) \
- { \
+ do { \
v4i32 s0_m, s1_m, s2_m, s3_m, constant_m; \
v4i32 in0_r_m, in1_r_m, in2_r_m, in3_r_m; \
\
@@ -112,5 +112,5 @@
SRARI_W4_SW(in0_r_m, in1_r_m, s2_m, s3_m, DCT_CONST_BITS); \
PCKEV_H4_SH(in0_r_m, in0_r_m, in1_r_m, in1_r_m, s2_m, s2_m, s3_m, s3_m, \
out0, out1, out2, out3); \
- }
+ } while (0)
#endif // VPX_VP9_ENCODER_MIPS_MSA_VP9_FDCT_MSA_H_