Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / lib / builtins / fp_mode.h
blob5b4969a441f24241cfae38e5a30a8b01db705595
1 //===----- lib/fp_mode.h - Floaing-point environment mode utilities --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 // This file is not part of the interface of this library.
11 // This file defines an interface for accessing hardware floating point
12 // environment mode.
14 //===----------------------------------------------------------------------===//
16 #ifndef FP_MODE_H
17 #define FP_MODE_H
19 typedef enum {
20 CRT_FE_TONEAREST,
21 CRT_FE_DOWNWARD,
22 CRT_FE_UPWARD,
23 CRT_FE_TOWARDZERO
24 } CRT_FE_ROUND_MODE;
26 CRT_FE_ROUND_MODE __fe_getround(void);
27 int __fe_raise_inexact(void);
29 #endif // FP_MODE_H