File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,6 +43,13 @@ static int __builtin_cpu_supports(char* arg)
4343}
4444#endif
4545
46+ #define CPU_UNKNOWN 0
47+ #define CPU_POWER6 6
48+ #define CPU_POWER7 7
49+ #define CPU_POWER8 8
50+ #define CPU_POWER9 9
51+ #define CPU_POWER10 10
52+
4653#if defined(C_PGI ) || defined(__clang__ )
4754/*
4855 * NV HPC compilers do not yet implement __builtin_cpu_is().
@@ -61,13 +68,6 @@ static int __builtin_cpu_supports(char* arg)
6168 * NOTE NV HPC SDK compilers only support POWER8 and POWER9 at this time
6269 */
6370
64- #define CPU_UNKNOWN 0
65- #define CPU_POWER5 5
66- #define CPU_POWER6 6
67- #define CPU_POWER8 8
68- #define CPU_POWER9 9
69- #define CPU_POWER10 10
70-
7171static struct {
7272 uint32_t pvr_mask ;
7373 uint32_t pvr_value ;
@@ -191,13 +191,6 @@ static int __builtin_cpu_is(const char *cpu) {
191191#ifdef _AIX
192192#include <sys/systemcfg.h>
193193
194- #define CPU_UNKNOWN 0
195- #define CPU_POWER6 6
196- #define CPU_POWER7 7
197- #define CPU_POWER8 8
198- #define CPU_POWER9 9
199- #define CPU_POWER10 10
200-
201194static int cpuid (void )
202195{
203196 int arch = _system_configuration .implementation ;
You can’t perform that action at this time.
0 commit comments