Improve formatting for FPU

This commit is contained in:
Kawe Mazidjatari 2022-12-25 22:49:49 +01:00
parent 0a9045f1c7
commit 9ec5b6aabd

View File

@ -59,7 +59,7 @@ template<> struct fmt::formatter<M128A> : fmt::formatter<string_view>
int v3 = obj.High & INT_MAX;
int v4 = obj.High >> 32;
return fmt::format_to( ctx.out(),
"[ {:G}, {:G}, {:G}, {:G}], [ 0x{:x}, 0x{:x}, 0x{:x}, 0x{:x} ]",
"[ [{:G}, {:G}, {:G}, {:G}], [{:#x}, {:#x}, {:#x}, {:#x}] ]",
*reinterpret_cast<float*>(&v1),
*reinterpret_cast<float*>(&v2),
*reinterpret_cast<float*>(&v3),