Home
last modified time | relevance | path

Searched refs:bc_vec_item (Results 1 – 10 of 10) sorted by relevance

/external/bc/src/
Dparse.c52 p->func = bc_vec_item(&p->prog->fns, fidx); in bc_parse_updateFunc()
62 BcFunc *f = BC_IS_BC ? p->func : bc_vec_item(&p->prog->fns, BC_PROG_MAIN); in bc_parse_addId()
113 neg = (*((char*) bc_vec_item(&p->l.str, idx + 1)) == BC_LEX_NEG_CHAR); in bc_parse_number()
115 bc_parse_addId(p, bc_vec_item(&p->l.str, idx + 1 + neg), BC_INST_NUM); in bc_parse_number()
123 p->func = bc_vec_item(&p->prog->fns, p->fidx); in bc_parse_text()
Dvector.c173 ptr = bc_vec_item(v, idx); in bc_vec_popAt()
174 data = bc_vec_item(v, idx + 1); in bc_vec_popAt()
188 ptr = bc_vec_item(v, idx); in bc_vec_replaceAt()
195 void* bc_vec_item(const BcVec *restrict v, size_t idx) { in bc_vec_item() function
218 BcId *id = bc_vec_item(v, mid); in bc_map_find()
239 else if (!bc_id_cmp(ptr, bc_vec_item(v, *i))) return false; in bc_map_insert()
255 return bc_id_cmp(ptr, bc_vec_item(v, i)) ? BC_VEC_INVALID_IDX : i; in bc_map_index()
Dprogram.c87 return bc_vec_item(&p->fns, i); in bc_program_func()
92 return bc_vec_item(&f->consts, idx); in bc_program_const()
97 return *((char**) bc_vec_item(&f->strs, idx)); in bc_program_str()
130 v = bc_vec_item(bc_vec_item(&p->arrs, vidx), nidx); in bc_program_dereference()
158 ptr = bc_vec_item(map, i); in bc_program_search()
166 return bc_vec_item(v, idx); in bc_program_vec()
241 n = bc_vec_item(v, idx); in bc_program_num()
434 BcFunc *f = bc_vec_item(&p->fns, BC_PROG_READ); in bc_program_read()
437 BcInstPtr *ip_ptr = bc_vec_item(&p->stack, i); in bc_program_read()
472 f = bc_vec_item(&p->fns, BC_PROG_READ); in bc_program_read()
[all …]
Dvm.c147 BcFunc *f = bc_vec_item(&vm->prog.fns, ip->func); in bc_vm_error()
199 s = bc_args((int) v.len - 1, bc_vec_item(&v, 0)); in bc_vm_envArgs()
316 BcFunc *f = bc_vec_item(fns, BC_PROG_MAIN); in bc_vm_clean()
317 BcInstPtr *ip = bc_vec_item(&prog->stack, 0); in bc_vm_clean()
330 BcVec *arr = bc_vec_item(&vm->prog.vars, i); in bc_vm_clean()
339 BcVec *arr = bc_vec_item(&vm->prog.arrs, i); in bc_vm_clean()
347 BcNum *n = bc_vec_item(arr, j); in bc_vm_clean()
617 char *path = *((char**) bc_vec_item(&vm->files, i)); in bc_vm_exec()
Dlang.c78 BcLoc *id = bc_vec_item(&f->autos, i); in bc_func_insert()
157 BcNum *dnum = bc_vec_item(d, i), *snum = bc_vec_item(s, i); in bc_array_copy()
/external/toybox/toys/pending/
Dbc.c966 void* bc_vec_item(BcVec *v, size_t idx) { in bc_vec_item() function
987 struct str_len *id = bc_vec_item(v, mid); in bc_map_find()
1003 else if (!bc_id_cmp(ptr, bc_vec_item(v, *i))) return 0; in bc_map_insert()
1012 return bc_id_cmp(ptr, bc_vec_item(v, i)) ? SIZE_MAX : i; in bc_map_index()
2345 struct str_len *id = bc_vec_item(&f->autos, i); in bc_func_insert()
2403 BcNum *dnum = bc_vec_item(d, i), *snum = bc_vec_item(s, i); in bc_array_copy()
2975 p->func = bc_vec_item(&p->prog->fns, fidx); in bc_parse_updateFunc()
3002 p->func = bc_vec_item(&p->prog->fns, p->fidx); in bc_parse_text()
3098 label = bc_vec_item(&func->labels, ip->idx); in bc_parse_setLabel()
3130 p->func = bc_vec_item(&p->prog->fns, p->fidx); in bc_parse_addFunc()
[all …]
/external/bc/include/
Dvector.h81 void* bc_vec_item(const BcVec *restrict v, size_t idx);
/external/bc/src/bc/
Dparse.c103 assert(func == bc_vec_item(&p->prog->fns, p->fidx)); in bc_parse_setLabel()
105 label = bc_vec_item(&func->labels, ip->idx); in bc_parse_setLabel()
124 assert(p->func == bc_vec_item(&p->prog->fns, p->fidx)); in bc_parse_createExitLabel()
228 p->func = bc_vec_item(&p->prog->fns, p->fidx); in bc_parse_call()
232 idx = ((BcId*) bc_vec_item(&p->prog->fn_map, idx))->idx; in bc_parse_call()
846 ip = bc_vec_item(&p->exits, i); in bc_parse_loopExit()
848 while (!ip->func && i < p->exits.len) ip = bc_vec_item(&p->exits, i--); in bc_parse_loopExit()
/external/bc/manuals/
Dbenchmarks.md280 `bc_vec_item()`, which should turn into just one instruction (on `x86_64`) when
/external/bc/src/history/
Dhistory.c647 memcpy(bc_vec_item(&h->buf, h->pos), cbuf, clen); in bc_history_edit_insert()
789 str = *((char**) bc_vec_item(&h->history, h->history.len - 1 - h->idx)); in bc_history_edit_next()