[flang] Use object before converts in fir.dispatch (#68589)
[llvm-project.git] / libc / include / llvm-libc-types / double_t.h
blob2aa471de4840f1623137c1988872d9535073b456
1 //===-- Definition of double_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_DOUBLE_T_H__
10 #define __LLVM_LIBC_TYPES_DOUBLE_T_H__
12 #if !defined(__FLT_EVAL_METHOD__) || __FLT_EVAL_METHOD__ == 0
13 #define __LLVM_LIBC_DOUBLE_T double
14 #elif __FLT_EVAL_METHOD__ == 1
15 #define __LLVM_LIBC_DOUBLE_T double
16 #elif __FLT_EVAL_METHOD__ == 2
17 #define __LLVM_LIBC_DOUBLE_T long double
18 #else
19 #error "Unsupported __FLT_EVAL_METHOD__ value."
20 #endif
22 typedef __LLVM_LIBC_DOUBLE_T double_t;
24 #endif // __LLVM_LIBC_TYPES_DOUBLE_T_H__