mirror of
https://github.com/azahar-emu/dynarmic.git
synced 2026-04-26 14:43:39 +02:00
disassembler: Deduplicate SignStr
Also just makes it return a character, rather than a pointer to a string.
This commit is contained in:
@@ -21,5 +21,10 @@ std::string StringFromFormat(
|
||||
#endif
|
||||
;
|
||||
|
||||
template <typename T>
|
||||
constexpr char SignToChar(T value) {
|
||||
return value >= 0 ? '+' : '-';
|
||||
}
|
||||
|
||||
} // namespace Common
|
||||
} // namespace Dynarmic
|
||||
|
||||
Reference in New Issue
Block a user