MCPcopy Create free account
hub / github.com/F-Stack/f-stack / emit_sib

Function emit_sib

dpdk/lib/bpf/bpf_jit_x86.c:208–215  ·  view source on GitHub ↗

* emit SIB byte */

Source from the content-addressed store, hash-verified

206 * emit SIB byte
207 */
208static void
209emit_sib(struct bpf_jit_state *st, uint32_t scale, uint32_t idx, uint32_t base)
210{
211 uint8_t v;
212
213 v = scale << 6 | (idx & 7) << 3 | (base & 7);
214 emit_bytes(st, &v, sizeof(v));
215}
216
217/*
218 * emit OPCODE+REGIDX byte

Callers 2

emit_ld_regFunction · 0.85
emit_st_commonFunction · 0.85

Calls 1

emit_bytesFunction · 0.85

Tested by

no test coverage detected