[libc-commits] [libc] [libc][math][c23] Add f16sqrtf C23 math function (PR #95251)
via libc-commits
libc-commits at lists.llvm.org
Wed Jun 12 07:18:39 PDT 2024
================
@@ -271,7 +290,8 @@ class MPFRMatcher : public testing::Matcher<OutputType> {
// types.
template <Operation op, typename InputType, typename OutputType>
constexpr bool is_valid_operation() {
- return (Operation::BeginUnaryOperationsSingleOutput < op &&
+ return (op == Operation::Sqrt) ||
----------------
lntue wrote:
Add a separate condition like:
```
constexpr bool IS_NARROWING_OP = (op == Operation::Sqrt) && ....
```
https://github.com/llvm/llvm-project/pull/95251
More information about the libc-commits
mailing list