xref: /llvm-project/libc/src/fenv/fedisableexcept.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
10da5ac1aSSiva Chandra Reddy //===-- Implementation of fedisableexcept function ------------------------===//
20da5ac1aSSiva Chandra Reddy //
30da5ac1aSSiva Chandra Reddy // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40da5ac1aSSiva Chandra Reddy // See https://llvm.org/LICENSE.txt for license information.
50da5ac1aSSiva Chandra Reddy // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60da5ac1aSSiva Chandra Reddy //
70da5ac1aSSiva Chandra Reddy //===----------------------------------------------------------------------===//
80da5ac1aSSiva Chandra Reddy 
90da5ac1aSSiva Chandra Reddy #include "src/fenv/fedisableexcept.h"
1076ec69a9STue Ly #include "src/__support/FPUtil/FEnvImpl.h"
110da5ac1aSSiva Chandra Reddy #include "src/__support/common.h"
12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
130da5ac1aSSiva Chandra Reddy 
14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
150da5ac1aSSiva Chandra Reddy 
160da5ac1aSSiva Chandra Reddy LLVM_LIBC_FUNCTION(int, fedisableexcept, (int e)) {
171c92911eSMichael Jones   return fputil::disable_except(e);
180da5ac1aSSiva Chandra Reddy }
190da5ac1aSSiva Chandra Reddy 
20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
21