Remove CompType::Double

* This is a leftover artifact from before we had general extended type support
  and double was the only non-32 bit type we handled. Now we support most type
  formats so doubles are just CompType::Float with 8 byte width
This commit is contained in:
baldurk
2020-07-12 10:52:10 +01:00
parent 6dd09ed2cb
commit 0d026a43d6
23 changed files with 137 additions and 141 deletions
+11 -12
View File
@@ -52,11 +52,10 @@ struct SortValue
{
case CompType::Float:
type = Float;
val.d = result.value.f;
break;
case CompType::Double:
type = Float;
val.d = result.value.d;
if(description.resultByteWidth == 8)
val.d = result.value.d;
else
val.d = result.value.f;
break;
case CompType::UInt:
@@ -146,19 +145,19 @@ QTableWidgetItem *PerformanceCounterViewer::MakeCounterResultItem(const CounterR
switch(description.resultType)
{
case CompType::Float: returnValue += Formatter::Format(mul * result.value.f); break;
case CompType::Double: returnValue += Formatter::Format(mul * result.value.d); break;
case CompType::Float:
if(description.resultByteWidth == 8)
returnValue += Formatter::Format(mul * result.value.d);
else
returnValue += Formatter::Format(mul * result.value.f);
break;
case CompType::UInt:
if(description.resultByteWidth == 8)
{
returnValue += Formatter::Format(result.value.u64);
}
else
{
returnValue += Formatter::Format(result.value.u32);
}
break;
default:
// assert (false)