xref: /llvm-project/libc/src/fenv/fesetround.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
14fff2a7eSSiva Chandra Reddy //===-- Implementation of fesetround 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/fesetround.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, fesetround, (int m)) { return fputil::set_round(m); }
174fff2a7eSSiva Chandra Reddy 
18*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
19