rpcsx/rpcs3/Emu/Cell/SPUAnalyser.cpp

16 lines
319 B
C++
Raw Normal View History

#include "stdafx.h"
#include "SPUAnalyser.h"
template <>
void fmt_class_string<spu_iname::type>::format(std::string& out, u64 arg)
{
// Decode instruction name from the enum value
for (u32 i = 0; i < 10; i++)
{
if (u64 value = (arg >> (54 - i * 6)) & 0x3f)
2016-06-05 12:14:20 +02:00
{
out += static_cast<char>(value + 0x20);
2016-06-05 12:14:20 +02:00
}
}
}