1//===-- Implementation header for bf16divf128 -------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_LIBC_SRC__SUPPORT_MATH_BF16DIVF128_H
10#define LLVM_LIBC_SRC__SUPPORT_MATH_BF16DIVF128_H
11
12#include "include/llvm-libc-types/float128.h"
13
14#ifdef LIBC_TYPES_HAS_FLOAT128
15
16#include "src/__support/FPUtil/bfloat16.h"
17#include "src/__support/FPUtil/generic/div.h"
18#include "src/__support/common.h"
19#include "src/__support/macros/config.h"
20
21namespace LIBC_NAMESPACE_DECL {
22namespace math {
23
24LIBC_INLINE bfloat16 bf16divf128(float128 x, float128 y) {
25 return fputil::generic::div<bfloat16>(x, y);
26}
27
28} // namespace math
29} // namespace LIBC_NAMESPACE_DECL
30
31#endif // LIBC_TYPES_HAS_FLOAT128
32
33#endif // LLVM_LIBC_SRC__SUPPORT_MATH_BF16DIVF128_H
34