Lines Matching refs:ptr
33 #define ZEND_MAP_PTR(ptr) \ argument
34 ptr ## __ptr
39 #define ZEND_MAP_PTR_PTR2OFFSET(ptr) \ argument
40 ((void*)(((char*)(ptr)) - ((char*)CG(map_ptr_base))))
41 #define ZEND_MAP_PTR_INIT(ptr, val) do { \ argument
42 ZEND_MAP_PTR(ptr) = (val); \
44 #define ZEND_MAP_PTR_NEW(ptr) do { \ argument
45 ZEND_MAP_PTR(ptr) = zend_map_ptr_new(); \
51 # define ZEND_MAP_PTR_GET(ptr) \ argument
52 (*(ZEND_MAP_PTR(ptr)))
53 # define ZEND_MAP_PTR_GET_IMM(ptr) \ argument
54 ZEND_MAP_PTR_GET(ptr)
55 # define ZEND_MAP_PTR_SET(ptr, val) do { \ argument
56 (*(ZEND_MAP_PTR(ptr))) = (val); \
58 # define ZEND_MAP_PTR_SET_IMM(ptr, val) \ argument
59 ZEND_MAP_PTR_SET(ptr, val)
65 # define ZEND_MAP_PTR_IS_OFFSET(ptr) \ argument
66 (((uintptr_t)ZEND_MAP_PTR(ptr)) & 1L)
67 # define ZEND_MAP_PTR_GET(ptr) \ argument
68 (*(ZEND_MAP_PTR_IS_OFFSET(ptr) ? \
69 ZEND_MAP_PTR_OFFSET2PTR((uintptr_t)ZEND_MAP_PTR(ptr)) : \
70 ((void**)(ZEND_MAP_PTR(ptr)))))
71 # define ZEND_MAP_PTR_GET_IMM(ptr) \ argument
72 (*ZEND_MAP_PTR_OFFSET2PTR((uintptr_t)ZEND_MAP_PTR(ptr)))
73 # define ZEND_MAP_PTR_SET(ptr, val) do { \ argument
74 void **__p = (void**)(ZEND_MAP_PTR(ptr)); \
75 if (ZEND_MAP_PTR_IS_OFFSET(ptr)) { \
76 __p = ZEND_MAP_PTR_OFFSET2PTR((uintptr_t)ZEND_MAP_PTR(ptr)); \
80 # define ZEND_MAP_PTR_SET_IMM(ptr, val) do { \ argument
81 void **__p = ZEND_MAP_PTR_OFFSET2PTR((uintptr_t)ZEND_MAP_PTR(ptr)); \