xref: /llvm-project/libc/src/math/generic/f16subf.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
112a1e6ddSOverMighty //===-- Implementation of f16subf function --------------------------------===//
212a1e6ddSOverMighty //
312a1e6ddSOverMighty // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
412a1e6ddSOverMighty // See https://llvm.org/LICENSE.txt for license information.
512a1e6ddSOverMighty // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
612a1e6ddSOverMighty //
712a1e6ddSOverMighty //===----------------------------------------------------------------------===//
812a1e6ddSOverMighty 
912a1e6ddSOverMighty #include "src/math/f16subf.h"
1012a1e6ddSOverMighty #include "src/__support/FPUtil/generic/add_sub.h"
1112a1e6ddSOverMighty #include "src/__support/common.h"
12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
1312a1e6ddSOverMighty 
14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
1512a1e6ddSOverMighty 
1612a1e6ddSOverMighty LLVM_LIBC_FUNCTION(float16, f16subf, (float x, float y)) {
1712a1e6ddSOverMighty   return fputil::generic::sub<float16>(x, y);
1812a1e6ddSOverMighty }
1912a1e6ddSOverMighty 
20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
21