aboutsummaryrefslogtreecommitdiff
path: root/fuzz/fuzz_targets/display_does_not_panic.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2022-04-21 02:35:38 -0700
committeriximeow <git@iximeow.net>2022-12-03 15:11:09 -0800
commite1b3633e9595abdd4714a18bae9d5b0aeaed8a80 (patch)
tree7b8f99118156fa9a4ba35e27bc8d51da50be1a7b /fuzz/fuzz_targets/display_does_not_panic.rs
parentc15999d4a5afa1e2e3e6d6c227135dfd5cf28780 (diff)
support a fast path through the decoder for [rex-prefixed]opcode insts
the overwhelming majority of x86 instructions are either a single-byte opcode or a single-byte opcode with a rex prefix. supporting these specially means that we don't have to length-check on every byte or go through the full decode loop while reading the most likely instructions. this is a significant improvement on typical x86 streams, but comes at a moderate penalty for crafted x86 instructions. the penalty is still not very bad, as the fast path is exited in favor of the full decode loop as soon as we see a non-rex prefix byte; this adds maybe a dozen instructions to the slow path.
Diffstat (limited to 'fuzz/fuzz_targets/display_does_not_panic.rs')
0 files changed, 0 insertions, 0 deletions