[libc-commits] [libc] [libc][c++23][math] Add fabsbf16 math function (PR #148398)

via libc-commits libc-commits at lists.llvm.org
Mon Jul 21 09:18:03 PDT 2025


================
@@ -0,0 +1,21 @@
+//===-- Implementation header for fabsbf16 ----------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SRC_MATH_FABSBF16_H
+#define LLVM_LIBC_SRC_MATH_FABSBF16_H
+
+#include "src/__support/FPUtil/bfloat16.h"
----------------
overmighty wrote:

iirc during our last meeting @lntue said the implementation header should only include types.h and the implementation file (.cpp) should only include bfloat16.h.

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


More information about the libc-commits mailing list