Remove duplicate defines.

This commit is contained in:
Chip-Kerchner 2023-10-02 12:48:47 -05:00
parent 10210748de
commit e5dc376912
1 changed files with 7 additions and 14 deletions

View File

@ -43,6 +43,13 @@ static int __builtin_cpu_supports(char* arg)
} }
#endif #endif
#define CPU_UNKNOWN 0
#define CPU_POWER6 6
#define CPU_POWER7 7
#define CPU_POWER8 8
#define CPU_POWER9 9
#define CPU_POWER10 10
#if defined(C_PGI) || defined(__clang__) #if defined(C_PGI) || defined(__clang__)
/* /*
* NV HPC compilers do not yet implement __builtin_cpu_is(). * NV HPC compilers do not yet implement __builtin_cpu_is().
@ -61,13 +68,6 @@ static int __builtin_cpu_supports(char* arg)
* NOTE NV HPC SDK compilers only support POWER8 and POWER9 at this time * NOTE NV HPC SDK compilers only support POWER8 and POWER9 at this time
*/ */
#define CPU_UNKNOWN 0
#define CPU_POWER5 5
#define CPU_POWER6 6
#define CPU_POWER8 8
#define CPU_POWER9 9
#define CPU_POWER10 10
static struct { static struct {
uint32_t pvr_mask; uint32_t pvr_mask;
uint32_t pvr_value; uint32_t pvr_value;
@ -191,13 +191,6 @@ static int __builtin_cpu_is(const char *cpu) {
#ifdef _AIX #ifdef _AIX
#include <sys/systemcfg.h> #include <sys/systemcfg.h>
#define CPU_UNKNOWN 0
#define CPU_POWER6 6
#define CPU_POWER7 7
#define CPU_POWER8 8
#define CPU_POWER9 9
#define CPU_POWER10 10
static int cpuid(void) static int cpuid(void)
{ {
int arch = _system_configuration.implementation; int arch = _system_configuration.implementation;