aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-06-23 15:35:04 -0700
committeriximeow <me@iximeow.net>2024-06-23 15:35:04 -0700
commitbc4abf8d43d39b16dcc4a37b407c37f97f156568 (patch)
tree923c872961e79d1f3a54a271b1854c6d0fb818b9 /src
parent24d5384f610ae33439a73493e6ed3c842ef852a0 (diff)
last vestiges of initial perf experiments
Diffstat (limited to 'src')
-rw-r--r--src/long_mode/display.rs6
-rw-r--r--src/protected_mode/display.rs6
-rw-r--r--src/real_mode/display.rs6
3 files changed, 0 insertions, 18 deletions
diff --git a/src/long_mode/display.rs b/src/long_mode/display.rs
index 907ee9c..147517a 100644
--- a/src/long_mode/display.rs
+++ b/src/long_mode/display.rs
@@ -4282,15 +4282,12 @@ impl<'a, F: DisplaySink> super::OperandVisitor for RelativeBranchPrinter<'a, F>
fn visit_i8(&mut self, rel: i8) -> Result<Self::Ok, Self::Error> {
if RELATIVE_BRANCHES.contains(&self.inst.opcode) {
self.out.write_char('$')?;
- // danger_anguished_string_write(self.out, "$");
let mut v = rel as u8;
if rel < 0 {
self.out.write_char('-')?;
- //danger_anguished_string_write(&mut self.out, "-");
v = rel.unsigned_abs();
} else {
self.out.write_char('+')?;
- // danger_anguished_string_write(&mut self.out, "+");
}
self.out.write_fixed_size("0x")?;
self.out.write_u8(v)?;
@@ -4303,15 +4300,12 @@ impl<'a, F: DisplaySink> super::OperandVisitor for RelativeBranchPrinter<'a, F>
fn visit_i32(&mut self, rel: i32) -> Result<Self::Ok, Self::Error> {
if RELATIVE_BRANCHES.contains(&self.inst.opcode) || self.inst.opcode == Opcode::XBEGIN {
self.out.write_char('$')?;
- // danger_anguished_string_write(self.out, "$");
let mut v = rel as u32;
if rel < 0 {
self.out.write_char('-')?;
- // danger_anguished_string_write(&mut self.out, "-");
v = rel.unsigned_abs();
} else {
self.out.write_char('+')?;
- // danger_anguished_string_write(&mut self.out, "+");
}
self.out.write_fixed_size("0x")?;
self.out.write_u32(v)?;
diff --git a/src/protected_mode/display.rs b/src/protected_mode/display.rs
index 349e5c1..6c63f46 100644
--- a/src/protected_mode/display.rs
+++ b/src/protected_mode/display.rs
@@ -2834,15 +2834,12 @@ impl<'a, F: DisplaySink> super::OperandVisitor for RelativeBranchPrinter<'a, F>
fn visit_i8(&mut self, rel: i8) -> Result<Self::Ok, Self::Error> {
if RELATIVE_BRANCHES.contains(&self.inst.opcode) {
self.out.write_char('$')?;
- // danger_anguished_string_write(self.out, "$");
let mut v = rel as u8;
if rel < 0 {
self.out.write_char('-')?;
- //danger_anguished_string_write(&mut self.out, "-");
v = rel.unsigned_abs();
} else {
self.out.write_char('+')?;
- // danger_anguished_string_write(&mut self.out, "+");
}
self.out.write_fixed_size("0x")?;
self.out.write_u8(v)?;
@@ -2855,15 +2852,12 @@ impl<'a, F: DisplaySink> super::OperandVisitor for RelativeBranchPrinter<'a, F>
fn visit_i32(&mut self, rel: i32) -> Result<Self::Ok, Self::Error> {
if RELATIVE_BRANCHES.contains(&self.inst.opcode) || self.inst.opcode == Opcode::XBEGIN {
self.out.write_char('$')?;
- // danger_anguished_string_write(self.out, "$");
let mut v = rel as u32;
if rel < 0 {
self.out.write_char('-')?;
- // danger_anguished_string_write(&mut self.out, "-");
v = rel.unsigned_abs();
} else {
self.out.write_char('+')?;
- // danger_anguished_string_write(&mut self.out, "+");
}
self.out.write_fixed_size("0x")?;
self.out.write_u32(v)?;
diff --git a/src/real_mode/display.rs b/src/real_mode/display.rs
index fe68830..27353b3 100644
--- a/src/real_mode/display.rs
+++ b/src/real_mode/display.rs
@@ -2834,15 +2834,12 @@ impl<'a, F: DisplaySink> super::OperandVisitor for RelativeBranchPrinter<'a, F>
fn visit_i8(&mut self, rel: i8) -> Result<Self::Ok, Self::Error> {
if RELATIVE_BRANCHES.contains(&self.inst.opcode) {
self.out.write_char('$')?;
- // danger_anguished_string_write(self.out, "$");
let mut v = rel as u8;
if rel < 0 {
self.out.write_char('-')?;
- //danger_anguished_string_write(&mut self.out, "-");
v = rel.unsigned_abs();
} else {
self.out.write_char('+')?;
- // danger_anguished_string_write(&mut self.out, "+");
}
self.out.write_fixed_size("0x")?;
self.out.write_u8(v)?;
@@ -2855,15 +2852,12 @@ impl<'a, F: DisplaySink> super::OperandVisitor for RelativeBranchPrinter<'a, F>
fn visit_i32(&mut self, rel: i32) -> Result<Self::Ok, Self::Error> {
if RELATIVE_BRANCHES.contains(&self.inst.opcode) || self.inst.opcode == Opcode::XBEGIN {
self.out.write_char('$')?;
- // danger_anguished_string_write(self.out, "$");
let mut v = rel as u32;
if rel < 0 {
self.out.write_char('-')?;
- // danger_anguished_string_write(&mut self.out, "-");
v = rel.unsigned_abs();
} else {
self.out.write_char('+')?;
- // danger_anguished_string_write(&mut self.out, "+");
}
self.out.write_fixed_size("0x")?;
self.out.write_u32(v)?;