Home
last modified time | relevance | path

Searched refs:TO_PTR (Results 1 - 2 of 2) sorted by relevance

/third_party/python/Modules/
H A D_testinternalcapi.c154 #define TO_PTR(ch) ((void*)(uintptr_t)ch) macro
192 assert(_Py_hashtable_get(table, TO_PTR('x')) == NULL); in test_hashtable()
198 if (_Py_hashtable_set(table, TO_PTR(key), TO_PTR(value)) < 0) { in test_hashtable()
208 _Py_hashtable_entry_t *entry = _Py_hashtable_get_entry(table, TO_PTR(key)); in test_hashtable()
210 assert(entry->key == TO_PTR(key)); in test_hashtable()
211 assert(entry->value == TO_PTR(VALUE(key))); in test_hashtable()
216 void *value_ptr = _Py_hashtable_get(table, TO_PTR(key)); in test_hashtable()
222 void *value_ptr = _Py_hashtable_steal(table, TO_PTR(key)); in test_hashtable()
225 assert(_Py_hashtable_get_entry(table, TO_PTR(ke in test_hashtable()
[all...]
H A D_tracemalloc.c33 #define TO_PTR(key) ((const void *)(uintptr_t)(key)) macro
500 return _Py_hashtable_get(tracemalloc_domains, TO_PTR(domain)); in tracemalloc_get_traces_table()
515 trace_t *trace = _Py_hashtable_steal(traces, TO_PTR(ptr)); in tracemalloc_remove_trace()
546 if (_Py_hashtable_set(tracemalloc_domains, TO_PTR(domain), traces) < 0) { in tracemalloc_add_trace()
552 trace_t *trace = _Py_hashtable_get(traces, TO_PTR(ptr)); in tracemalloc_add_trace()
569 int res = _Py_hashtable_set(traces, TO_PTR(ptr), trace); in tracemalloc_add_trace()
1248 if (_Py_hashtable_set(domains2, TO_PTR(domain), traces2) < 0) { in tracemalloc_copy_domain()
1430 trace = _Py_hashtable_get(traces, TO_PTR(ptr)); in tracemalloc_get_traceback()
1799 trace_t *trace = _Py_hashtable_get(tracemalloc_traces, TO_PTR(ptr)); in _PyTraceMalloc_NewReference()

Completed in 3 milliseconds