Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libc / include / llvm-libc-types / float_t.h
blob8df3bf05f6a1294e60a977d424323f750628216f
1 //===-- Definition of float_t type ----------------------------------------===//
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 //===----------------------------------------------------------------------===//
9 #ifndef __LLVM_LIBC_TYPES_FLOAT_T_H__
10 #define __LLVM_LIBC_TYPES_FLOAT_T_H__
12 #if !defined(__FLT_EVAL_METHOD__) || __FLT_EVAL_METHOD__ == 0
13 #define __LLVM_LIBC_FLOAT_T float
14 #elif __FLT_EVAL_METHOD__ == 1
15 #define __LLVM_LIBC_FLOAT_T double
16 #elif __FLT_EVAL_METHOD__ == 2
17 #define __LLVM_LIBC_FLOAT_T long double
18 #else
19 #error "Unsupported __FLT_EVAL_METHOD__ value."
20 #endif
22 typedef __LLVM_LIBC_FLOAT_T float_t;
24 #endif // __LLVM_LIBC_TYPES_FLOAT_T_H__