Lines Matching refs:ptr
34 # define ZEND_MAP_PTR(ptr) \ argument
35 ptr ## __ptr
38 # define ZEND_MAP_PTR_GET(ptr) \ argument
39 (*(ZEND_MAP_PTR(ptr)))
40 # define ZEND_MAP_PTR_SET(ptr, val) do { \ argument
41 (*(ZEND_MAP_PTR(ptr))) = (val); \
43 # define ZEND_MAP_PTR_INIT(ptr, val) do { \ argument
44 ZEND_MAP_PTR(ptr) = (val); \
46 # define ZEND_MAP_PTR_NEW(ptr) do { \ argument
47 ZEND_MAP_PTR(ptr) = zend_map_ptr_new(); \
51 # define ZEND_MAP_PTR_SET_REAL_BASE(base, ptr) do { \ argument
52 base = (ptr); \
55 # define ZEND_MAP_PTR(ptr) \ argument
56 ptr ## __ptr
59 # define ZEND_MAP_PTR_IS_OFFSET(ptr) \ argument
60 (((uintptr_t)ZEND_MAP_PTR(ptr)) & 1L)
61 # define ZEND_MAP_PTR_OFFSET2PTR(ptr) \ argument
62 ((void**)((char*)CG(map_ptr_base) + (uintptr_t)ZEND_MAP_PTR(ptr)))
63 # define ZEND_MAP_PTR_PTR2OFFSET(ptr) \ argument
64 ((void*)(((char*)(ptr)) - ((char*)CG(map_ptr_base))))
65 # define ZEND_MAP_PTR_GET(ptr) \ argument
66 (*(ZEND_MAP_PTR_IS_OFFSET(ptr) ? \
67 ZEND_MAP_PTR_OFFSET2PTR(ptr) : \
68 ((void**)(ZEND_MAP_PTR(ptr)))))
69 # define ZEND_MAP_PTR_SET(ptr, val) do { \ argument
70 void **__p = (void**)(ZEND_MAP_PTR(ptr)); \
71 if (ZEND_MAP_PTR_IS_OFFSET(ptr)) { \
72 __p = ZEND_MAP_PTR_OFFSET2PTR(ptr); \
76 # define ZEND_MAP_PTR_INIT(ptr, val) do { \ argument
77 ZEND_MAP_PTR(ptr) = (val); \
79 # define ZEND_MAP_PTR_NEW(ptr) do { \ argument
80 ZEND_MAP_PTR(ptr) = zend_map_ptr_new(); \
84 # define ZEND_MAP_PTR_SET_REAL_BASE(base, ptr) do { \ argument
85 base = (void*)(((uintptr_t)(ptr)) - 1); \