* In many cases for imm8 we can produce shorter code. */
| 123 | * In many cases for imm8 we can produce shorter code. |
| 124 | */ |
| 125 | static size_t |
| 126 | imm_size(int32_t v) |
| 127 | { |
| 128 | if (v == (int8_t)v) |
| 129 | return sizeof(int8_t); |
| 130 | return sizeof(int32_t); |
| 131 | } |
| 132 | |
| 133 | static void |
| 134 | emit_bytes(struct bpf_jit_state *st, const uint8_t ins[], uint32_t sz) |
no outgoing calls
no test coverage detected