diff options
author | iximeow <me@iximeow.net> | 2024-04-02 00:42:29 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2024-04-02 00:42:32 -0700 |
commit | 27c0d462eec5200be1e4cc5a24353a66b97c159c (patch) | |
tree | 596c9aedf55686153e6d7e1d10500b1c20421c1b /test/bench.rs | |
parent | bbdf78c061b6e685d1992dcdeac692fc2f8f0d34 (diff) |
swap test order for segment override applicability
it is almost always the case that self.prefixes.segment == Segment::DS,
meaning testing for it first avoids checking
`self.operands[op].is_memory()` later. this overall avoids a few
instructions in the typical path, rather than checking `is_memory()`
first (which would always be true in the places this function is called
from)
Diffstat (limited to 'test/bench.rs')
0 files changed, 0 insertions, 0 deletions