Searched refs:program_len (Results 1 – 3 of 3) sorted by relevance
55 static void print_jump_target(uint32_t target, uint32_t program_len) { in print_jump_target() argument56 if (target == program_len) { in print_jump_target()58 } else if (target == program_len + 1) { in print_jump_target()73 uint32_t program_len = 0; in main() local78 while (scanf("%2x", &byte) == 1 && program_len < sizeof(program)) { in main()79 program[program_len++] = byte; in main()82 for (uint32_t pc = 0; pc < program_len;) { in main()116 print_jump_target(pc + imm, program_len); in main()140 print_jump_target(pc + imm + cmp_imm, program_len); in main()145 print_jump_target(pc + imm, program_len); in main()
47 int accept_packet(const uint8_t* program, uint32_t program_len, in accept_packet() argument51 #define IN_PROGRAM_BOUNDS(p) (ENFORCE_UNSIGNED(p) && (p) < program_len) in accept_packet()78 uint32_t instructions_remaining = program_len; in accept_packet()81 if (pc == program_len) { in accept_packet()83 } else if (pc == (program_len + 1)) { in accept_packet()
45 int accept_packet(const uint8_t* program, uint32_t program_len,