Commit 8e3766f9 authored by Yaowu Xu's avatar Yaowu Xu Committed by Gerrit Code Review

Merge "Add VPX_SWAP macro" into nextgenv2

parents abb842d4 a8de3c0c
...@@ -46,6 +46,13 @@ extern "C" { ...@@ -46,6 +46,13 @@ extern "C" {
# define UNLIKELY(v) (v) # define UNLIKELY(v) (v)
#endif #endif
#define VPX_SWAP(type, a, b) \
do { \
type c = (b); \
b = a; \
a = c; \
} while (0)
#if CONFIG_VP9_HIGHBITDEPTH #if CONFIG_VP9_HIGHBITDEPTH
// Note: // Note:
// tran_low_t is the datatype used for final transform coefficients. // tran_low_t is the datatype used for final transform coefficients.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment