diff options
Diffstat (limited to 'media/libaom/src/aom_dsp/aom_dsp_common.h')
-rw-r--r-- | media/libaom/src/aom_dsp/aom_dsp_common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/libaom/src/aom_dsp/aom_dsp_common.h b/media/libaom/src/aom_dsp/aom_dsp_common.h index a185b23c8e..150d35dd15 100644 --- a/media/libaom/src/aom_dsp/aom_dsp_common.h +++ b/media/libaom/src/aom_dsp/aom_dsp_common.h @@ -27,6 +27,9 @@ extern "C" { #define AOMMIN(x, y) (((x) < (y)) ? (x) : (y)) #define AOMMAX(x, y) (((x) > (y)) ? (x) : (y)) +#define AOMSIGN(x) ((x) < 0 ? -1 : 0) + +#define NELEMENTS(x) (int)(sizeof(x) / sizeof(x[0])) #define IMPLIES(a, b) (!(a) || (b)) // Logical 'a implies b' (or 'a -> b') |