Bump version to 19.1.0 (final)
[llvm-project.git] / libc / include / llvm-libc-types / float_t.h
blob5027249c30d387faf5364e969daacc4db83fa463
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