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

@ -25,6 +25,7 @@ import std;
import :Common;
namespace Crafter {
#ifdef __x86_64
export template <std::uint8_t Len, std::uint8_t Packing>
struct VectorF32 : public VectorBase<Len, Packing, float> {
template <std::uint8_t Len2, std::uint8_t Packing2>
@ -1382,9 +1383,10 @@ namespace Crafter {
return row1;
}
};
#endif
}
#ifdef __x86_64
export template <std::uint32_t Len, std::uint32_t Packing>
struct std::formatter<Crafter::VectorF32<Len, Packing>> : std::formatter<std::string> {
constexpr auto format(const Crafter::VectorF32<Len, Packing>& obj, format_context& ctx) const {
@ -1401,4 +1403,5 @@ struct std::formatter<Crafter::VectorF32<Len, Packing>> : std::formatter<std::st
out += "}";
return std::formatter<std::string>::format(out, ctx);
}
};
};
#endif