MCPcopy Create free account
hub / github.com/codr7/hacktical-c / op_items

Function op_items

vm/vm.c:31–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31static size_t op_items(const struct hc_op *op,
32 uint8_t *p,
33 struct hc_vm *vm) {
34 const size_t s = op->size + hc_align(p, op->align) - p;
35 return ceil(s / (double)vm->code.item_size);
36}
37
38static void deinit_stack(struct hc_vm *vm) {
39 hc_vector_do(&vm->stack, v) {

Callers 2

deinit_opsFunction · 0.85
hc_vm_emitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected