xref: /llvm-project/libc/src/math/generic/f16mull.cpp (revision 9fb049c8c6a77026fa75a8d36b386a7f5a60613a)
1*9fb049c8SOverMighty //===-- Implementation of f16mull function --------------------------------===//
2*9fb049c8SOverMighty //
3*9fb049c8SOverMighty // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*9fb049c8SOverMighty // See https://llvm.org/LICENSE.txt for license information.
5*9fb049c8SOverMighty // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*9fb049c8SOverMighty //
7*9fb049c8SOverMighty //===----------------------------------------------------------------------===//
8*9fb049c8SOverMighty 
9*9fb049c8SOverMighty #include "src/math/f16mull.h"
10*9fb049c8SOverMighty #include "src/__support/FPUtil/generic/mul.h"
11*9fb049c8SOverMighty #include "src/__support/common.h"
12*9fb049c8SOverMighty #include "src/__support/macros/config.h"
13*9fb049c8SOverMighty 
14*9fb049c8SOverMighty namespace LIBC_NAMESPACE_DECL {
15*9fb049c8SOverMighty 
16*9fb049c8SOverMighty LLVM_LIBC_FUNCTION(float16, f16mull, (long double x, long double y)) {
17*9fb049c8SOverMighty   return fputil::generic::mul<float16>(x, y);
18*9fb049c8SOverMighty }
19*9fb049c8SOverMighty 
20*9fb049c8SOverMighty } // namespace LIBC_NAMESPACE_DECL
21