Add VPX_SWAP macro
Change-Id: I60e233eddef238ad918183392794084673f27d2d
This commit is contained in:
@@ -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.
|
||||||
|
Reference in New Issue
Block a user