[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

View File

@@ -264,12 +264,7 @@ static inline vec128_t vec128b(uint8_t x0, uint8_t x1, uint8_t x2, uint8_t x3,
return v;
}
inline std::string to_string(const vec128_t& value) {
char buffer[128];
snprintf(buffer, sizeof(buffer), "(%g, %g, %g, %g)", value.x, value.y,
value.z, value.w);
return std::string(buffer);
}
extern inline std::string to_string(const vec128_t& value);
} // namespace xe