18ee6ab7fSaniplcc //===-- Implementation of fesetexcept function ----------------------------===// 28ee6ab7fSaniplcc // 38ee6ab7fSaniplcc // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 48ee6ab7fSaniplcc // See https://llvm.org/LICENSE.txt for license information. 58ee6ab7fSaniplcc // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 68ee6ab7fSaniplcc // 78ee6ab7fSaniplcc //===----------------------------------------------------------------------===// 88ee6ab7fSaniplcc 98ee6ab7fSaniplcc #include "src/fenv/fesetexcept.h" 108ee6ab7fSaniplcc #include "src/__support/FPUtil/FEnvImpl.h" 118ee6ab7fSaniplcc #include "src/__support/common.h" 12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h" 138ee6ab7fSaniplcc 14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL { 158ee6ab7fSaniplcc 168ee6ab7fSaniplcc LLVM_LIBC_FUNCTION(int, fesetexcept, (int excepts)) { 178ee6ab7fSaniplcc return fputil::set_except(excepts); 188ee6ab7fSaniplcc } 198ee6ab7fSaniplcc 20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL 21