Document the new DPF surfaces in one command set, and test the field, half-tree, and multipoint edges.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
0d8a5a8131
commit
0dff6df8ed
250 changed files with 12199 additions and 1981 deletions
|
|
@ -1,6 +1,5 @@
|
|||
/// @file dpf/leaf_arithmetic.hpp
|
||||
/// @brief
|
||||
/// @details
|
||||
/// @brief Addition, subtraction, and multiplication of packed leaves.
|
||||
/// @author Ryan Henry <ryan.henry@ucalgary.ca>
|
||||
/// @copyright Copyright (c) 2019-2024 Ryan Henry and [others](@ref authors)
|
||||
/// @license Released under a GNU General Public v2.0 (GPLv2) license;
|
||||
|
|
@ -361,6 +360,7 @@ template <typename OutputT, typename NodeT, std::size_t N> struct add_t<OutputT,
|
|||
template <std::size_t Nbits, typename WordT> struct add_t<dpf::bitstring<Nbits, WordT>, void> final : public detail::bitstring_xor_t<Nbits, WordT> {};
|
||||
/// @brief Bitwise XOR, not IEEE addition. Float addition does not form an
|
||||
/// exact secret-sharing group; XOR of the representation does.
|
||||
/// @tparam NodeT GGM node type
|
||||
template <typename NodeT> struct add_t<float, NodeT> final : public std::bit_xor<> {};
|
||||
template <typename NodeT> struct add_t<double, NodeT> final : public std::bit_xor<> {};
|
||||
template <> struct add_t<dpf::bit, void> final : public std::bit_xor<> {};
|
||||
|
|
@ -372,6 +372,7 @@ template <typename T, typename NodeT> struct add_t<xor_wrapper<T>, NodeT> final
|
|||
/// @brief Integer outputs whose width matches a SIMD lane but whose type is
|
||||
/// not one of the explicitly specialized aliases (`char`, `long long`,
|
||||
/// `char16_t`, and so on).
|
||||
/// @tparam OutputT output type
|
||||
template <typename OutputT>
|
||||
struct add_t<OutputT, simde__m128i,
|
||||
std::enable_if_t<std::is_integral_v<OutputT> && sizeof(OutputT) <= 8>>
|
||||
|
|
@ -405,7 +406,6 @@ struct add_t<dpf::modint<N>, simde__m256i>
|
|||
return add_t<typename dpf::modint<N>::integral_type, simde__m256i>{}(a, b);
|
||||
}
|
||||
};
|
||||
|
||||
HEDLEY_PRAGMA(GCC diagnostic pop)
|
||||
|
||||
namespace detail
|
||||
|
|
@ -646,6 +646,7 @@ template <> struct subtract_t<simde_uint128, simde__m256i> final
|
|||
template <typename OutputT, typename NodeT, std::size_t N> struct subtract_t<OutputT, std::array<NodeT, N>> final : public detail::sub_array_t<OutputT> {};
|
||||
template <std::size_t Nbits, typename WordT> struct subtract_t<dpf::bitstring<Nbits, WordT>, void> final : public detail::bitstring_xor_t<Nbits, WordT> {};
|
||||
/// @brief Bitwise XOR, not IEEE subtraction.
|
||||
/// @tparam NodeT GGM node type
|
||||
template <typename NodeT> struct subtract_t<float, NodeT> final : public std::bit_xor<> {};
|
||||
template <typename NodeT> struct subtract_t<double, NodeT> final : public std::bit_xor<> {};
|
||||
template <typename NodeT> struct subtract_t<dpf::bit, NodeT> final : public std::bit_xor<> {};
|
||||
|
|
@ -687,7 +688,6 @@ struct subtract_t<dpf::modint<N>, simde__m256i>
|
|||
return subtract_t<typename dpf::modint<N>::integral_type, simde__m256i>{}(a, b);
|
||||
}
|
||||
};
|
||||
|
||||
HEDLEY_PRAGMA(GCC diagnostic pop)
|
||||
|
||||
namespace detail
|
||||
|
|
@ -806,7 +806,6 @@ struct mul4x64_t
|
|||
static_cast<int64_t>(a[3]*b)};
|
||||
}
|
||||
};
|
||||
HEDLEY_PRAGMA(GCC diagnostic pop)
|
||||
|
||||
} // namespace detail
|
||||
|
||||
|
|
@ -1279,8 +1278,8 @@ struct multiply_t<dpf::nyble, simde__m256i> final
|
|||
return dpf::lane_arith::mul_epi4(a, b);
|
||||
}
|
||||
};
|
||||
|
||||
HEDLEY_PRAGMA(GCC diagnostic pop)
|
||||
|
||||
} // namespace leaf_arithmetic
|
||||
|
||||
} // namespace dpf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue