Add VPX_SWAP macro

Change-Id: I60e233eddef238ad918183392794084673f27d2d
This commit is contained in:
Yury Gitman 2016-07-15 10:32:04 -07:00
parent 53db633349
commit 3d3f51262c

View File

@ -22,6 +22,13 @@ extern "C" {
#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.