Home
last modified time | relevance | path

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

/third_party/python/Modules/
D_testinternalcapi.c147 #define TO_PTR(ch) ((void*)(uintptr_t)ch) macro
185 assert(_Py_hashtable_get(table, TO_PTR('x')) == NULL); in test_hashtable()
191 if (_Py_hashtable_set(table, TO_PTR(key), TO_PTR(value)) < 0) { in test_hashtable()
201 _Py_hashtable_entry_t *entry = _Py_hashtable_get_entry(table, TO_PTR(key)); in test_hashtable()
203 assert(entry->key == TO_PTR(key)); in test_hashtable()
204 assert(entry->value == TO_PTR(VALUE(key))); in test_hashtable()
209 void *value_ptr = _Py_hashtable_get(table, TO_PTR(key)); in test_hashtable()
215 void *value_ptr = _Py_hashtable_steal(table, TO_PTR(key)); in test_hashtable()
218 assert(_Py_hashtable_get_entry(table, TO_PTR(key)) == NULL); in test_hashtable()
230 assert(_Py_hashtable_get(table, TO_PTR('x')) == NULL); in test_hashtable()
D_tracemalloc.c26 #define TO_PTR(key) ((const void *)(uintptr_t)(key)) macro
492 return _Py_hashtable_get(tracemalloc_domains, TO_PTR(domain)); in tracemalloc_get_traces_table()
507 trace_t *trace = _Py_hashtable_steal(traces, TO_PTR(ptr)); in tracemalloc_remove_trace()
538 if (_Py_hashtable_set(tracemalloc_domains, TO_PTR(domain), traces) < 0) { in tracemalloc_add_trace()
544 trace_t *trace = _Py_hashtable_get(traces, TO_PTR(ptr)); in tracemalloc_add_trace()
561 int res = _Py_hashtable_set(traces, TO_PTR(ptr), trace); in tracemalloc_add_trace()
1244 if (_Py_hashtable_set(domains2, TO_PTR(domain), traces2) < 0) { in tracemalloc_copy_domain()
1426 trace = _Py_hashtable_get(traces, TO_PTR(ptr)); in tracemalloc_get_traceback()
1795 trace_t *trace = _Py_hashtable_get(tracemalloc_traces, TO_PTR(ptr)); in _PyTraceMalloc_NewReference()