From 003a9d20add4f736ff16fa58e51b5ca1bbf50ce0 Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Fri, 24 Jun 2016 12:44:23 -0700 Subject: Port metric computation changes from nextgenv2 Change-Id: I4aceffcdf7af59ffeb51984f0345c3a4c7e76a9f --- vpx_ports/mem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vpx_ports') diff --git a/vpx_ports/mem.h b/vpx_ports/mem.h index 7502f9063..ae4aec808 100644 --- a/vpx_ports/mem.h +++ b/vpx_ports/mem.h @@ -45,9 +45,9 @@ #define ALIGN_POWER_OF_TWO(value, n) \ (((value) + ((1 << (n)) - 1)) & ~((1 << (n)) - 1)) +#define CONVERT_TO_SHORTPTR(x) ((uint16_t*)(((uintptr_t)(x)) << 1)) #if CONFIG_VP9_HIGHBITDEPTH -#define CONVERT_TO_SHORTPTR(x) ((uint16_t*)(((uintptr_t)x) << 1)) -#define CONVERT_TO_BYTEPTR(x) ((uint8_t*)(((uintptr_t)x) >> 1)) +#define CONVERT_TO_BYTEPTR(x) ((uint8_t*)(((uintptr_t)(x)) >> 1)) #endif // CONFIG_VP9_HIGHBITDEPTH #endif // VPX_PORTS_MEM_H_ -- cgit v1.2.3