about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-01-21 00:48:42 -0800
committerKartik Agaram <vc@akkartik.com>2019-01-21 00:48:42 -0800
commitee2f7013c344a1bdfca2c9823e038f56d0efcd09 (patch)
treeff55437b60a3a1f6a358498dac4009473f65da6c /subx
parent148ab0a23e2a4b108657cd20c149f410de2b2a1e (diff)
downloadmu-ee2f7013c344a1bdfca2c9823e038f56d0efcd09.tar.gz
4940
Diffstat (limited to 'subx')
-rw-r--r--subx/031check_operands.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/subx/031check_operands.cc b/subx/031check_operands.cc
index fb72087d..dc8ce67a 100644
--- a/subx/031check_operands.cc
+++ b/subx/031check_operands.cc
@@ -260,7 +260,7 @@ void check_operands(const line& inst, const word& op) {
 
 void compare_bitvector(const line& inst, uint8_t expected, const word& op) {
   if (all_hex_bytes(inst) && has_operands(inst)) return;  // deliberately programming in raw hex; we'll raise a warning elsewhere
-  uint8_t bitvector = computed_expected_operand_bitvector(inst);
+  uint8_t bitvector = compute_expected_operand_bitvector(inst);
   if (trace_contains_errors()) return;  // duplicate operand type
   if (bitvector == expected) return;  // all good with this instruction
   for (int i = 0;  i < NUM_OPERAND_TYPES;  ++i, bitvector >>= 1, expected >>= 1) {
@@ -284,7 +284,7 @@ string maybe_name(const word& op) {
   return " ("+s.substr(0, s.find(" ("))+')';
 }
 
-uint32_t computed_expected_operand_bitvector(const line& inst) {
+uint32_t compute_expected_operand_bitvector(const line& inst) {
   uint32_t bitvector = 0;
   for (int i = /*skip op*/1;  i < SIZE(inst.words);  ++i) {
     bitvector = bitvector | expected_bit_for_received_operand(inst.words.at(i));
@@ -372,7 +372,7 @@ void check_operands_modrm(const line& inst, const word& op) {
 // instructions: they may use an extra displacement on occasion
 void compare_bitvector_modrm(const line& inst, uint8_t expected, const word& op) {
   if (all_hex_bytes(inst) && has_operands(inst)) return;  // deliberately programming in raw hex; we'll raise a warning elsewhere
-  uint8_t bitvector = computed_expected_operand_bitvector(inst);
+  uint8_t bitvector = compute_expected_operand_bitvector(inst);
   if (trace_contains_errors()) return;  // duplicate operand type
   // update 'expected' bitvector for the additional exception
   if (has_operand_metadata(inst, "mod")) {
@@ -552,7 +552,7 @@ void check_operands_0f(const line& inst, const word& op) {
 
 void compare_bitvector_0f(const line& inst, uint8_t expected, const word& op) {
   if (all_hex_bytes(inst) && has_operands(inst)) return;  // deliberately programming in raw hex; we'll raise a warning elsewhere
-  uint8_t bitvector = computed_expected_operand_bitvector(inst);
+  uint8_t bitvector = compute_expected_operand_bitvector(inst);
   if (trace_contains_errors()) return;  // duplicate operand type
   if (bitvector == expected) return;  // all good with this instruction
   for (int i = 0;  i < NUM_OPERAND_TYPES;  ++i, bitvector >>= 1, expected >>= 1) {