68 #if ZPTR_BASE || defined(DOXYGEN)
78 #define PRIzptr PRIu16
83 #define ZPTR_MAX_ADDR ((uintptr_t)ZPTR_BASE + (1 << 18))
92 uintptr_t int_ptr = (uintptr_t)pointer;
93 return ((!(int_ptr & 0x3)) \
94 && (int_ptr >= (uintptr_t)ZPTR_BASE) \
109 return (uint16_t)(((uint32_t)pointer - (uint32_t)ZPTR_BASE) >> 2);
122 return (
void *)(ZPTR_BASE + ((uint32_t)zptr << 2));
129 static inline int zptr_check(
void *pointer) { (void)pointer;
return 0; }
131 static inline void *
zptrd(
zptr_t zptr) {
return (
void *)zptr; }