[libc-commits] [libc] [libc][math][c++23] Add bf16{add, sub}{, f, l, f128} math functions (PR #152774)

via libc-commits libc-commits at lists.llvm.org
Fri Aug 8 11:31:04 PDT 2025


================
@@ -648,6 +662,25 @@ template bool compare_binary_operation_one_output(Operation,
                                                   const BinaryInput<bfloat16> &,
                                                   bfloat16, double,
                                                   RoundingMode);
+
+template bool compare_binary_operation_one_output(Operation,
+                                                  const BinaryInput<float> &,
+                                                  bfloat16, double,
+                                                  RoundingMode);
+template bool compare_binary_operation_one_output(Operation,
+                                                  const BinaryInput<double> &,
+                                                  bfloat16, double,
+                                                  RoundingMode);
+template bool
+compare_binary_operation_one_output(Operation, const BinaryInput<long double> &,
+                                    bfloat16, double, RoundingMode);
+#if defined(LIBC_TYPES_HAS_FLOAT128) &&                                        \
+    defined(LIBC_TYPES_FLOAT128_IS_NOT_LONG_DOUBLE)
+template bool compare_binary_operation_one_output(Operation,
+                                                  const BinaryInput<float128> &,
+                                                  bfloat16, double,
+                                                  RoundingMode);
+#endif // LIBC_TYPES_HAS_FLOAT128
----------------
overmighty wrote:

Comment doesn't match condition (`defined(LIBC_TYPES_HAS_FLOAT128) && defined(LIBC_TYPES_FLOAT128_IS_NOT_LONG_DOUBLE)`).

https://github.com/llvm/llvm-project/pull/152774


More information about the libc-commits mailing list