File tree 2 files changed +7
-11
lines changed
src/__support/macros/properties
2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 19
19
// https://github.com/llvm/llvm-project/issues/80195
20
20
#if defined(__STDC_IEC_60559_BFP__ ) && !defined(__clang__ ) && \
21
21
!defined(__cplusplus )
22
- // Use _Float128 C23 type.
23
- #define LIBC_COMPILER_HAS_C23_FLOAT128
22
+ #define LIBC_TYPES_HAS_FLOAT128
24
23
typedef _Float128 float128 ;
25
24
#elif defined(__FLOAT128__ ) || defined(__SIZEOF_FLOAT128__ )
26
25
// Use __float128 type. gcc and clang sometime use __SIZEOF_FLOAT128__ to
27
26
// notify the availability of __float128.
28
27
// clang also uses __FLOAT128__ macro to notify the availability of __float128
29
28
// type: https://reviews.llvm.org/D15120
30
- #define LIBC_COMPILER_HAS_FLOAT128_EXTENSION
29
+ #define LIBC_TYPES_HAS_FLOAT128
31
30
typedef __float128 float128 ;
32
31
#elif (LDBL_MANT_DIG == 113 )
33
- // Use long double.
32
+ #define LIBC_TYPES_HAS_FLOAT128
34
33
typedef long double float128 ;
35
34
#endif
36
35
Original file line number Diff line number Diff line change 26
26
#define LIBC_TYPES_LONG_DOUBLE_IS_FLOAT128
27
27
#endif
28
28
29
- // float16 support.
29
+ // -- float16 support ---------------------------------------------------------
30
30
// TODO: move this logic to "llvm-libc-types/float16.h"
31
31
#if defined(LIBC_TARGET_ARCH_IS_X86_64) && defined(LIBC_TARGET_CPU_HAS_SSE2)
32
32
#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 1500)) || \
@@ -50,11 +50,8 @@ using float16 = _Float16;
50
50
#endif
51
51
#endif
52
52
53
- // float128 support.
54
- #if defined(LIBC_COMPILER_HAS_C23_FLOAT128) || \
55
- defined (LIBC_COMPILER_HAS_FLOAT128_EXTENSION) || \
56
- defined(LIBC_TYPES_LONG_DOUBLE_IS_FLOAT128)
57
- #define LIBC_TYPES_HAS_FLOAT128
58
- #endif
53
+ // -- float128 support --------------------------------------------------------
54
+ // LIBC_TYPES_HAS_FLOAT128 and 'float128' type are provided by
55
+ // "include/llvm-libc-types/float128.h"
59
56
60
57
#endif // LLVM_LIBC_SRC___SUPPORT_MACROS_PROPERTIES_TYPES_H
You can’t perform that action at this time.
0 commit comments