32bit -> 16bit pointer compression implementation More...
32bit -> 16bit pointer compression implementation
Definition in file zptr.h.
Go to the source code of this file.
Macros | |
#define | PRIzptr PRIu16 |
zptr printf format definition | |
#define | ZPTR_MAX_ADDR ((uintptr_t)ZPTR_BASE + (1 << 18)) |
zptr highest compressible address | |
Typedefs | |
typedef uint16_t | zptr_t |
zptr type definition | |
Functions | |
static int | zptr_check (void *pointer) |
Determine if a pointer is compressible by zptrc() | |
static zptr_t | zptrc (void *pointer) |
Compress a pointer (if possible) | |
static void * | zptrd (zptr_t zptr) |
Decompress a pointer. | |