[Base] Move implementation out of header where appropriate, and qualify std namespace.

This commit is contained in:
gibbed
2019-08-04 04:40:19 -05:00
parent 40cc8c52d7
commit 2048239f30
4 changed files with 100 additions and 41 deletions

26
src/xenia/base/vec128.cc Normal file
View File

@@ -0,0 +1,26 @@
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
#include <cstddef>
#include <string>
#include "xenia/base/math.h"
#include "xenia/base/platform.h"
#include "xenia/base/vec128.h"
namespace xe {
inline std::string to_string(const vec128_t& value) {
char buffer[128];
std::snprintf(buffer, sizeof(buffer), "(%g, %g, %g, %g)", value.x, value.y,
value.z, value.w);
return std::string(buffer);
}
} // namespace xe