/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/Math/src/SSEVec.cc
37 строк
2 KB
Shahzad Malik Muzaffar
[RECONSTRUCTION] [RISCV] Fix needed for riscv64
29 июл 2024, 10:49
29 июл 2024, 10:49
0de5e45
Код
Авторство
О чём код?
#if !defined(__arm__) && !defined(__aarch64__) && !defined(__MIC__) && !defined(__powerpc64__) && \ !defined(__PPC64__) && !defined(__powerpc__) && !defined(__riscv) #include "DataFormats/Math/interface/SSEVec.h" #include "DataFormats/Math/interface/SSERot.h" using namespace mathSSE; #include <ostream> std::ostream& operator<<(std::ostream& out, Vec4F const& v) { return out << '(' << v[0] << ", " << v[1] << ", " << v[2] << ", " << v[3] << ')'; } std::ostream& operator<<(std::ostream& out, Vec4D const& v) { return out << '(' << v[0] << ", " << v[1] << ", " << v[2] << ", " << v[3] << ')'; } std::ostream& operator<<(std::ostream& out, Vec2F const& v) { return out << '(' << v[0] << ", " << v[1] << ')'; } std::ostream& operator<<(std::ostream& out, Vec2D const& v) { return out << '(' << v[0] << ", " << v[1] << ')'; } std::ostream& operator<<(std::ostream& out, As3D<float> const& v) { return out << '(' << v.v[0] << ", " << v.v[1] << ", " << v.v[2] << ')'; } std::ostream& operator<<(std::ostream& out, As3D<double> const& v) { return out << '(' << v.v[0] << ", " << v.v[1] << ", " << v.v[2] << ')'; } std::ostream& operator<<(std::ostream& out, Rot3F const& r) { return out << as3D(r.axis[0]) << '\n' << as3D(r.axis[1]) << '\n' << as3D(r.axis[2]); } std::ostream& operator<<(std::ostream& out, Rot3D const& r) { return out << as3D(r.axis[0]) << '\n' << as3D(r.axis[1]) << '\n' << as3D(r.axis[2]); } std::ostream& operator<<(std::ostream& out, Rot2F const& r) { return out << r.axis[0] << '\n' << r.axis[1]; } std::ostream& operator<<(std::ostream& out, Rot2D const& r) { return out << r.axis[0] << '\n' << r.axis[1]; } #endif /* !defined(__arm__) && !defined(__aarch64__) && !defined(__MIC__) */