Lines Matching refs:ptr
29 #define ZEND_MAP_PTR(ptr) \ argument
30 ptr ## __ptr
35 #define ZEND_MAP_PTR_PTR2OFFSET(ptr) \ argument
36 ((void*)(((char*)(ptr)) - ((char*)CG(map_ptr_base))))
37 #define ZEND_MAP_PTR_INIT(ptr, val) do { \ argument
38 ZEND_MAP_PTR(ptr) = (val); \
40 #define ZEND_MAP_PTR_NEW(ptr) do { \ argument
41 ZEND_MAP_PTR(ptr) = zend_map_ptr_new(); \
47 # define ZEND_MAP_PTR_IS_OFFSET(ptr) \ argument
48 (((uintptr_t)ZEND_MAP_PTR(ptr)) & 1L)
49 # define ZEND_MAP_PTR_GET(ptr) \ argument
50 ((ZEND_MAP_PTR_IS_OFFSET(ptr) ? \
51 ZEND_MAP_PTR_GET_IMM(ptr) : \
52 ((void*)(ZEND_MAP_PTR(ptr)))))
53 # define ZEND_MAP_PTR_GET_IMM(ptr) \ argument
54 (*ZEND_MAP_PTR_OFFSET2PTR((uintptr_t)ZEND_MAP_PTR(ptr)))
55 # define ZEND_MAP_PTR_SET(ptr, val) do { \ argument
56 if (ZEND_MAP_PTR_IS_OFFSET(ptr)) { \
57 ZEND_MAP_PTR_SET_IMM(ptr, val); \
59 ZEND_MAP_PTR_INIT(ptr, val); \
62 # define ZEND_MAP_PTR_SET_IMM(ptr, val) do { \ argument
63 void **__p = ZEND_MAP_PTR_OFFSET2PTR((uintptr_t)ZEND_MAP_PTR(ptr)); \