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

Function emit_neg

dpdk/lib/bpf/bpf_jit_x86.c:246–255  ·  view source on GitHub ↗

* emit neg % */

Source from the content-addressed store, hash-verified

244 * emit neg %<dreg>
245 */
246static void
247emit_neg(struct bpf_jit_state *st, uint32_t op, uint32_t dreg)
248{
249 const uint8_t ops = 0xF7;
250 const uint8_t mods = 3;
251
252 emit_rex(st, op, 0, dreg);
253 emit_bytes(st, &ops, sizeof(ops));
254 emit_modregrm(st, MOD_DIRECT, mods, dreg);
255}
256
257/*
258 * emit mov %<sreg>, %<dreg>

Callers 1

emitFunction · 0.70

Calls 3

emit_rexFunction · 0.85
emit_bytesFunction · 0.85
emit_modregrmFunction · 0.85

Tested by

no test coverage detected