14fff2a7eSSiva Chandra Reddy //===-- Implementation of fetestexcept 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/fetestexcept.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 161c92911eSMichael Jones LLVM_LIBC_FUNCTION(int, fetestexcept, (int e)) { 171c92911eSMichael Jones return fputil::test_except(e); 181c92911eSMichael Jones } 194fff2a7eSSiva Chandra Reddy 20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL 21