xref: /llvm-project/libc/src/math/generic/setpayloadsigf16.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
11107575cSOverMighty //===-- Implementation of setpayloadsigf16 function -----------------------===//
21107575cSOverMighty //
31107575cSOverMighty // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
41107575cSOverMighty // See https://llvm.org/LICENSE.txt for license information.
51107575cSOverMighty // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
61107575cSOverMighty //
71107575cSOverMighty //===----------------------------------------------------------------------===//
81107575cSOverMighty 
91107575cSOverMighty #include "src/math/setpayloadsigf16.h"
101107575cSOverMighty #include "src/__support/FPUtil/BasicOperations.h"
111107575cSOverMighty #include "src/__support/common.h"
12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
131107575cSOverMighty 
14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
151107575cSOverMighty 
161107575cSOverMighty LLVM_LIBC_FUNCTION(int, setpayloadsigf16, (float16 * res, float16 pl)) {
171107575cSOverMighty   return static_cast<int>(fputil::setpayload</*IsSignaling=*/true>(*res, pl));
181107575cSOverMighty }
191107575cSOverMighty 
20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
21