答案 0 :(得分:1)
如果要将__m128i矢量的内容打印到屏幕,可以使用以下内容:
template<class T> inline void Log(const T * data, size_t size, const std::string & name)
{
std::cout << name << " = { ";
for (int i = 0; i < size; i++)
{
std::cout << int(data[i]) << " ";
}
std::cout << "} " << std::endl;
}
inline void LogU8(const __m128i & value, const std::string & name)
{
uint8_t buffer[16];
_mm_storeu_si128((__m128i*)buffer, value);
Log(buffer, 16, name);
}