Lines Matching refs:program_len
57 static void print_jump_target(uint32_t target, uint32_t program_len) { in print_jump_target() argument
58 if (target == program_len) { in print_jump_target()
60 } else if (target == program_len + 1) { in print_jump_target()
67 uint32_t apf_disassemble(const uint8_t* program, uint32_t program_len, uint32_t pc) { in apf_disassemble() argument
70 if (pc == program_len) { in apf_disassemble()
75 if (pc == program_len + 1) { in apf_disassemble()
90 for (uint32_t i = 0; i < imm_len && pc < program_len; i++) in apf_disassemble()
111 print_jump_target(pc + imm, program_len); in apf_disassemble()
130 for (i = 0; i < cmp_imm_len && pc < program_len; i++) in apf_disassemble()
135 print_jump_target(pc + imm + cmp_imm, program_len); in apf_disassemble()
140 print_jump_target(pc + imm, program_len); in apf_disassemble()