blob: 51bec0431a4023b23b3eee288473cee4867343e1 [file] [log] [blame]
Yi Kongd92ddff2019-01-31 06:31:53 +08001//===----- 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.
10//
11// This file defines an interface for accessing hardware floating point
12// environment mode.
13//
14//===----------------------------------------------------------------------===//
15
16#ifndef FP_MODE
17#define FP_MODE
18
19typedef enum {
20 FE_TONEAREST,
21 FE_DOWNWARD,
22 FE_UPWARD,
23 FE_TOWARDZERO
24} FE_ROUND_MODE;
25
26FE_ROUND_MODE __fe_getround();
27int __fe_raise_inexact();
28
29#endif // FP_MODE_H