diff options
| author | OverMighty <its.overmighty@gmail.com> | 2024-06-30 00:48:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-29 18:48:12 -0400 |
| commit | 56ef6a2eb2a25d5960eafdb17eaaaa73cb318e57 (patch) | |
| tree | 6e7dba25dc66af25d6fd0e08dd1634fb03ffad97 /libc/src/math/generic/f16divl.cpp | |
| parent | 534f6ed6237ddf8b966b66c7b0a491fff5b33afb (diff) | |
[libc][math][c23] Add f16div{,l,f128} C23 math functions (#97054)
Part of #93566.
Diffstat (limited to 'libc/src/math/generic/f16divl.cpp')
| -rw-r--r-- | libc/src/math/generic/f16divl.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libc/src/math/generic/f16divl.cpp b/libc/src/math/generic/f16divl.cpp new file mode 100644 index 000000000000..3fb9c7891f5d --- /dev/null +++ b/libc/src/math/generic/f16divl.cpp @@ -0,0 +1,19 @@ +//===-- Implementation of f16divl function --------------------------------===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#include "src/math/f16divl.h" +#include "src/__support/FPUtil/generic/div.h" +#include "src/__support/common.h" + +namespace LIBC_NAMESPACE { + +LLVM_LIBC_FUNCTION(float16, f16divl, (long double x, long double y)) { + return fputil::generic::div<float16>(x, y); +} + +} // namespace LIBC_NAMESPACE |
