From aa04b6f9a7475e9d9457dfc5bf441faf15efc466 Mon Sep 17 00:00:00 2001 From: Jerome Jiang Date: Tue, 19 Mar 2019 17:16:41 -0700 Subject: Wrap macro definition in do-while(0) Change-Id: Id654a48d2fa40355552d7267e58461e6cc1c6998 --- vpx_dsp/mips/sad_msa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vpx_dsp/mips/sad_msa.c') diff --git a/vpx_dsp/mips/sad_msa.c b/vpx_dsp/mips/sad_msa.c index ab681ae9f..004e744b1 100644 --- a/vpx_dsp/mips/sad_msa.c +++ b/vpx_dsp/mips/sad_msa.c @@ -12,12 +12,12 @@ #include "vpx_dsp/mips/macros_msa.h" #define SAD_INSVE_W4(RTYPE, in0, in1, in2, in3, out) \ - { \ + do { \ out = (RTYPE)__msa_insve_w((v4i32)out, 0, (v4i32)in0); \ out = (RTYPE)__msa_insve_w((v4i32)out, 1, (v4i32)in1); \ out = (RTYPE)__msa_insve_w((v4i32)out, 2, (v4i32)in2); \ out = (RTYPE)__msa_insve_w((v4i32)out, 3, (v4i32)in3); \ - } + } while (0) #define SAD_INSVE_W4_UB(...) SAD_INSVE_W4(v16u8, __VA_ARGS__) static uint32_t sad_4width_msa(const uint8_t *src_ptr, int32_t src_stride, -- cgit v1.2.3