Home
last modified time | relevance | path

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

/AliOS-Things-master/components/py_engine/engine/extmod/
A Dmoduheapq.c34 STATIC mp_obj_list_t *uheapq_get_heap(mp_obj_t heap_in) { in uheapq_get_heap() argument
35 if (!mp_obj_is_type(heap_in, &mp_type_list)) { in uheapq_get_heap()
38 return MP_OBJ_TO_PTR(heap_in); in uheapq_get_heap()
73 STATIC mp_obj_t mod_uheapq_heappush(mp_obj_t heap_in, mp_obj_t item) { in mod_uheapq_heappush() argument
74 mp_obj_list_t *heap = uheapq_get_heap(heap_in); in mod_uheapq_heappush()
75 mp_obj_list_append(heap_in, item); in mod_uheapq_heappush()
81 STATIC mp_obj_t mod_uheapq_heappop(mp_obj_t heap_in) { in mod_uheapq_heappop() argument
82 mp_obj_list_t *heap = uheapq_get_heap(heap_in); in mod_uheapq_heappop()
97 STATIC mp_obj_t mod_uheapq_heapify(mp_obj_t heap_in) { in mod_uheapq_heapify() argument
98 mp_obj_list_t *heap = uheapq_get_heap(heap_in); in mod_uheapq_heapify()
A Dmodutimeq.c58 STATIC mp_obj_utimeq_t *utimeq_get_heap(mp_obj_t heap_in) { in utimeq_get_heap() argument
59 return MP_OBJ_TO_PTR(heap_in); in utimeq_get_heap()
126 mp_obj_t heap_in = args[0]; in mod_utimeq_heappush() local
127 mp_obj_utimeq_t *heap = utimeq_get_heap(heap_in); in mod_utimeq_heappush()
142 STATIC mp_obj_t mod_utimeq_heappop(mp_obj_t heap_in, mp_obj_t list_ref) { in mod_utimeq_heappop() argument
143 mp_obj_utimeq_t *heap = utimeq_get_heap(heap_in); in mod_utimeq_heappop()
167 STATIC mp_obj_t mod_utimeq_peektime(mp_obj_t heap_in) { in mod_utimeq_peektime() argument
168 mp_obj_utimeq_t *heap = utimeq_get_heap(heap_in); in mod_utimeq_peektime()
179 STATIC mp_obj_t mod_utimeq_dump(mp_obj_t heap_in) { in mod_utimeq_dump() argument
180 mp_obj_utimeq_t *heap = utimeq_get_heap(heap_in); in mod_utimeq_dump()

Completed in 4 milliseconds