x86v3
This commit is contained in:
parent
143b71eeb9
commit
a16f8ffbde
7 changed files with 251 additions and 133 deletions
|
|
@ -66,6 +66,7 @@ namespace Crafter {
|
|||
}
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
constexpr std::array<_Float16, VectorBase<Len, Packing, _Float16>::AlignmentElement> Store() const {
|
||||
std::array<_Float16, VectorBase<Len, Packing, _Float16>::AlignmentElement> returnArray;
|
||||
Store(returnArray.data());
|
||||
|
|
@ -1029,7 +1030,7 @@ namespace Crafter {
|
|||
export template <std::uint32_t Len, std::uint32_t Packing>
|
||||
struct std::formatter<Crafter::VectorF16<Len, Packing>> : std::formatter<std::string> {
|
||||
constexpr auto format(const Crafter::VectorF16<Len, Packing>& obj, format_context& ctx) const {
|
||||
std::array<_Float16, Crafter::VectorF16<Len, Packing>::AlignmentElement> vec = obj.Store();
|
||||
std::array<_Float16, Crafter::VectorF16<Len, Packing>::AlignmentElement> vec = obj.template Store<float>();
|
||||
std::string out = "{";
|
||||
for(std::uint32_t i = 0; i < Packing; i++) {
|
||||
out += "{";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue