1 //===-- Definition of float_t type ----------------------------------------===//
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
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
19 #error "Unsupported __FLT_EVAL_METHOD__ value."
22 typedef __LLVM_LIBC_FLOAT_T float_t
;
24 #endif // __LLVM_LIBC_TYPES_FLOAT_T_H__