rsx: Refactor rsx_decode.h and bugfixes

This commit is contained in:
Eladash 2019-07-07 11:53:07 +03:00 committed by kd-11
parent db4bc6f6be
commit d57b4dc8f3
5 changed files with 859 additions and 1208 deletions

View file

@ -62,7 +62,7 @@ struct fmt_unveil<T, std::enable_if_t<std::is_floating_point<T>::value && sizeof
// Convert FP to f64 and reinterpret as u64
static inline u64 get(const f64& arg)
{
return *reinterpret_cast<const u64*>(reinterpret_cast<const u8*>(&arg));
return std::bit_cast<u64>(arg);
}
};