mirror of
https://github.com/xenia-project/xenia.git
synced 2026-04-05 06:35:11 +00:00
More workarounds for __m128.
This commit is contained in:
parent
7e58ad2800
commit
7fb4fd2790
1 changed files with 4 additions and 2 deletions
|
|
@ -71,8 +71,10 @@ inline std::string to_hex_string(const __m128& value) {
|
|||
|
||||
inline std::string to_string(const __m128& value) {
|
||||
char buffer[128];
|
||||
std::snprintf(buffer, sizeof(buffer), "(%F, %F, %F, %F)", value.m128_f32[0],
|
||||
value.m128_f32[1], value.m128_f32[2], value.m128_f32[3]);
|
||||
float f[4];
|
||||
_mm_storeu_ps(f, value);
|
||||
std::snprintf(buffer, sizeof(buffer), "(%F, %F, %F, %F)", f[0], f[1], f[2],
|
||||
f[3]);
|
||||
return std::string(buffer);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue