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