ref: 3d3f51262c64767ffb5502ca5fe2fcbd4366d879
parent: 53db6333493f53e6203ab8bd9bdde7cb2e03d34f
author: Yury Gitman <yuryg@google.com>
date: Fri Jul 15 06:32:04 EDT 2016
Add VPX_SWAP macro Change-Id: I60e233eddef238ad918183392794084673f27d2d
--- a/vpx_dsp/vpx_dsp_common.h
+++ b/vpx_dsp/vpx_dsp_common.h
@@ -22,6 +22,13 @@
#define VPXMIN(x, y) (((x) < (y)) ? (x) : (y))
#define VPXMAX(x, y) (((x) > (y)) ? (x) : (y))
+#define VPX_SWAP(type, a, b) \
+ do { \
+ type c = (b); \
+ b = a; \
+ a = c; \
+ } while (0)
+
#if CONFIG_VP9_HIGHBITDEPTH
// Note:
// tran_low_t is the datatype used for final transform coefficients.
--
⑨