1 //===-- Dummy floating point environment manipulation functins --*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_LIBC_UTILS_FPUTIL_DUMMY_FENV_H
10 #define LLVM_LIBC_UTILS_FPUTIL_DUMMY_FENV_H
11 
12 #include <math.h>
13 
14 namespace __llvm_libc {
15 namespace fputil {
16 
17 // All dummy functions silently succeed.
18 
clearExcept(int)19 int clearExcept(int) { return 0; }
20 
testExcept(int)21 int testExcept(int) { return 0; }
22 
raiseExcept(int)23 int raiseExcept(int) { return 0; }
24 
getRound()25 int getRound() { return FE_TONEAREST; }
26 
setRound(int)27 int setRound(int) { return 0; }
28 
29 } // namespace fputil
30 } // namespace __llvm_libc
31 
32 #endif // LLVM_LIBC_UTILS_FPUTIL_DUMMY_FENV_H
33