| Index: source/libvpx/vpx_ports/mem.h
|
| diff --git a/source/libvpx/vpx_ports/mem.h b/source/libvpx/vpx_ports/mem.h
|
| index 0106a45d6e4a5455c8874c481288f23d48a41dda..7502f9063259d4de8457d6d900d2eb118b8196f9 100644
|
| --- a/source/libvpx/vpx_ports/mem.h
|
| +++ b/source/libvpx/vpx_ports/mem.h
|
| @@ -38,4 +38,16 @@
|
| #define __builtin_prefetch(x)
|
| #endif
|
|
|
| +/* Shift down with rounding */
|
| +#define ROUND_POWER_OF_TWO(value, n) \
|
| + (((value) + (1 << ((n) - 1))) >> (n))
|
| +
|
| +#define ALIGN_POWER_OF_TWO(value, n) \
|
| + (((value) + ((1 << (n)) - 1)) & ~((1 << (n)) - 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))
|
| +#endif // CONFIG_VP9_HIGHBITDEPTH
|
| +
|
| #endif // VPX_PORTS_MEM_H_
|
|
|