diff options
author | Linfeng Zhang <linfengz@google.com> | 2017-04-05 17:40:12 -0700 |
---|---|---|
committer | Linfeng Zhang <linfengz@google.com> | 2017-04-18 14:48:11 -0700 |
commit | a02f391cbe618c6d84b35d161269266c43bc84ca (patch) | |
tree | 33b53059bd681f6a5e8f24ee83b13bb4279911c2 /vpx_ports/mem.h | |
parent | 15afee19385524c8ea3975f6fd11fd6282c0aa15 (diff) | |
download | libvpx-a02f391cbe618c6d84b35d161269266c43bc84ca.tar libvpx-a02f391cbe618c6d84b35d161269266c43bc84ca.tar.gz libvpx-a02f391cbe618c6d84b35d161269266c43bc84ca.tar.bz2 libvpx-a02f391cbe618c6d84b35d161269266c43bc84ca.zip |
Create CAST_TO_BYTEPTR/SHORTPTR
They will replace CONVERT_TO_BYTEPTR/SHORTPTR module by module.
BUG=webm:1388
Change-Id: Ie47c8cd4897696481b9cbbf9e2d439dc22dc85ec
Diffstat (limited to 'vpx_ports/mem.h')
-rw-r--r-- | vpx_ports/mem.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vpx_ports/mem.h b/vpx_ports/mem.h index 49954e904..bfef783b1 100644 --- a/vpx_ports/mem.h +++ b/vpx_ports/mem.h @@ -35,8 +35,10 @@ (((value) + ((1 << (n)) - 1)) & ~((1 << (n)) - 1)) #define CONVERT_TO_SHORTPTR(x) ((uint16_t *)(((uintptr_t)(x)) << 1)) +#define CAST_TO_SHORTPTR(x) ((uint16_t *)((uintptr_t)(x))) #if CONFIG_VP9_HIGHBITDEPTH #define CONVERT_TO_BYTEPTR(x) ((uint8_t *)(((uintptr_t)(x)) >> 1)) +#define CAST_TO_BYTEPTR(x) ((uint8_t *)((uintptr_t)(x))) #endif // CONFIG_VP9_HIGHBITDEPTH #if !defined(__has_feature) |