14fff2a7eSSiva Chandra Reddy //===-- Implementation of feclearexcept function --------------------------===// 24fff2a7eSSiva Chandra Reddy // 34fff2a7eSSiva Chandra Reddy // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 44fff2a7eSSiva Chandra Reddy // See https://llvm.org/LICENSE.txt for license information. 54fff2a7eSSiva Chandra Reddy // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 64fff2a7eSSiva Chandra Reddy // 74fff2a7eSSiva Chandra Reddy //===----------------------------------------------------------------------===// 84fff2a7eSSiva Chandra Reddy 9b02ca096SMichael Jones #include "src/fenv/feclearexcept.h" 1076ec69a9STue Ly #include "src/__support/FPUtil/FEnvImpl.h" 114fff2a7eSSiva Chandra Reddy #include "src/__support/common.h" 12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h" 134fff2a7eSSiva Chandra Reddy 14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL { 154fff2a7eSSiva Chandra Reddy 16a0b65a7bSMichael Jones LLVM_LIBC_FUNCTION(int, feclearexcept, (int e)) { 171c92911eSMichael Jones return fputil::clear_except(e); 184fff2a7eSSiva Chandra Reddy } 194fff2a7eSSiva Chandra Reddy 20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL 21