summaryrefslogtreecommitdiff
path: root/vpx_dsp/mips/sad_msa.c
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 /vpx_dsp/mips/sad_msa.c
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 'vpx_dsp/mips/sad_msa.c')
-rw-r--r--vpx_dsp/mips/sad_msa.c4
1 files changed, 2 insertions, 2 deletions
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,