x86 gating

This commit is contained in:
Jorijn van der Graaf 2026-05-18 01:18:30 +02:00
commit 99972d8c81
3 changed files with 22 additions and 4 deletions

View file

@ -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 += ",";