Warning: This file is not a C or C++ file. It does not have highlighting.
| 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 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #ifndef LLVM_LIBC_TYPES_FLOAT_T_H |
| 10 | #define LLVM_LIBC_TYPES_FLOAT_T_H |
| 11 | |
| 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 |
| 21 | |
| 22 | typedef __LLVM_LIBC_FLOAT_T float_t; |
| 23 | |
| 24 | #endif // LLVM_LIBC_TYPES_FLOAT_T_H |
| 25 |
Warning: This file is not a C or C++ file. It does not have highlighting.
