x86 gating
This commit is contained in:
parent
739ad8e59f
commit
99972d8c81
3 changed files with 22 additions and 4 deletions
|
|
@ -464,9 +464,12 @@ struct std::formatter<Crafter::Vector<T, Len, Aligment>> : std::formatter<std::s
|
|||
auto format(const Crafter::Vector<T, Len, Aligment>& vec, format_context& ctx) const {
|
||||
std::string out = "{";
|
||||
for(std::uint32_t i2 = 0; i2 < Len; i2++) {
|
||||
#ifdef __x86_64
|
||||
if constexpr(std::same_as<T, _Float16>) {
|
||||
out += std::format("{}", static_cast<float>(vec.v[i2]));
|
||||
} else {
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
out += std::format("{}", vec.v[i2]);
|
||||
}
|
||||
if (i2 + 1 < Len) out += ",";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue