[libc-commits] [libc] [libc] Add mpfr tests for fmul. (PR #97376)
via libc-commits
libc-commits at lists.llvm.org
Mon Jul 1 20:24:21 PDT 2024
================
@@ -253,30 +261,33 @@ class MPFRMatcher : public testing::Matcher<OutputType> {
rounding);
}
- template <typename T>
- bool match(BinaryInput<T> in, const BinaryOutput<T> &out) {
+ template <typename InType>
+ bool match(BinaryInput<InType> in, const BinaryOutput<InType> &out) {
return compare_binary_operation_two_outputs(op, in, out, ulp_tolerance,
rounding);
}
- template <typename T, typename U>
- bool match(const TernaryInput<T> &in, U out) {
+ template <typename InType, typename OutType>
+ bool match(const TernaryInput<InType> &in, OutType out) {
return compare_ternary_operation_one_output(op, in, out, ulp_tolerance,
rounding);
}
- template <typename T, typename U> void explain_error(T in, U out) {
+ template <typename InType, typename OutType>
+ void explain_error(InType in, OutType out) {
explain_unary_operation_single_output_error(op, in, out, ulp_tolerance,
rounding);
}
- template <typename T> void explain_error(T in, const BinaryOutput<T> &out) {
+ template <typename InType>
+ void explain_error(InType in, const BinaryOutput<InType> &out) {
----------------
lntue wrote:
There is only one type here for both input and output, leave it as `T`.
https://github.com/llvm/llvm-project/pull/97376
More information about the libc-commits
mailing list