Skip to content

Commit

Permalink
More workarounds for __m128.
Browse files Browse the repository at this point in the history
  • Loading branch information
sephiroth99 authored and benvanik committed Sep 22, 2015
1 parent 7e58ad2 commit 7fb4fd2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/xenia/base/string_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7fb4fd2

Please sign in to comment.