Lines Matching refs:ptr
31 #define ZEND_MAP_PTR(ptr) \ argument
32 ptr ## __ptr
37 #define ZEND_MAP_PTR_PTR2OFFSET(ptr) \ argument
38 ((void*)(((char*)(ptr)) - ((char*)CG(map_ptr_base))))
39 #define ZEND_MAP_PTR_INIT(ptr, val) do { \ argument
40 ZEND_MAP_PTR(ptr) = (val); \
42 #define ZEND_MAP_PTR_NEW(ptr) do { \ argument
43 ZEND_MAP_PTR(ptr) = zend_map_ptr_new(); \
45 #define ZEND_MAP_PTR_NEW_STATIC(ptr) do { \ argument
46 ZEND_MAP_PTR(ptr) = zend_map_ptr_new_static(); \
52 # define ZEND_MAP_PTR_IS_OFFSET(ptr) \ argument
53 (((uintptr_t)ZEND_MAP_PTR(ptr)) & 1L)
54 # define ZEND_MAP_PTR_GET(ptr) \ argument
55 ((ZEND_MAP_PTR_IS_OFFSET(ptr) ? \
56 ZEND_MAP_PTR_GET_IMM(ptr) : \
57 ((void*)(ZEND_MAP_PTR(ptr)))))
58 # define ZEND_MAP_PTR_GET_IMM(ptr) \ argument
59 (*ZEND_MAP_PTR_OFFSET2PTR((intptr_t)ZEND_MAP_PTR(ptr)))
60 # define ZEND_MAP_PTR_SET(ptr, val) do { \ argument
61 if (ZEND_MAP_PTR_IS_OFFSET(ptr)) { \
62 ZEND_MAP_PTR_SET_IMM(ptr, val); \
64 ZEND_MAP_PTR_INIT(ptr, val); \
67 # define ZEND_MAP_PTR_SET_IMM(ptr, val) do { \ argument
68 void **__p = ZEND_MAP_PTR_OFFSET2PTR((intptr_t)ZEND_MAP_PTR(ptr)); \