File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed
libc/include/llvm-libc-types Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change 9
9
#ifndef LLVM_LIBC_TYPES_FLOAT16_H
10
10
#define LLVM_LIBC_TYPES_FLOAT16_H
11
11
12
- #include "src/__support/macros/properties/architectures.h"
13
12
#include "src/__support/macros/properties/compiler.h"
14
- #include "src/__support/macros/properties/cpu_features.h"
15
13
16
- #if defined(LIBC_TARGET_ARCH_IS_X86_64 ) && defined(LIBC_TARGET_CPU_HAS_SSE2 )
17
- #if (defined(LIBC_COMPILER_CLANG_VER ) && (LIBC_COMPILER_CLANG_VER >= 1500 )) || \
18
- (defined(LIBC_COMPILER_GCC_VER ) && (LIBC_COMPILER_GCC_VER >= 1201 ))
14
+ #if defined(__FLT16_MANT_DIG__ ) && \
15
+ (!defined(LIBC_COMPILER_IS_GCC ) || LIBC_COMPILER_GCC_VER >= 1301 )
19
16
#define LIBC_TYPES_HAS_FLOAT16
20
17
using float16 = _Float16 ;
21
18
#endif
22
- #endif
23
- #if defined(LIBC_TARGET_ARCH_IS_AARCH64 )
24
- #if (defined(LIBC_COMPILER_CLANG_VER ) && (LIBC_COMPILER_CLANG_VER >= 900 )) || \
25
- (defined(LIBC_COMPILER_GCC_VER ) && (LIBC_COMPILER_GCC_VER >= 1301 ))
26
- #define LIBC_TYPES_HAS_FLOAT16
27
- using float16 = _Float16 ;
28
- #endif
29
- #endif
30
- #if defined(LIBC_TARGET_ARCH_IS_ANY_RISCV )
31
- #if (defined(LIBC_COMPILER_CLANG_VER ) && (LIBC_COMPILER_CLANG_VER >= 1300 )) || \
32
- (defined(LIBC_COMPILER_GCC_VER ) && (LIBC_COMPILER_GCC_VER >= 1301 ))
33
- #define LIBC_TYPES_HAS_FLOAT16
34
- using float16 = _Float16 ;
35
- #endif
36
- #endif
37
19
38
20
#endif // LLVM_LIBC_TYPES_FLOAT16_H
You can’t perform that action at this time.
0 commit comments