Skip to content

Commit

Permalink
enable cpuid for non-x86, non-arm, non-ppc archs. (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Aug 22, 2023
1 parent 0ca20c6 commit 3418f9f
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/cpuid.c
Expand Up @@ -49,9 +49,7 @@ int parasail_can_use_neon(void)
int parasail_can_use_neon(void) { return 0; }
#endif

#else

/* x64_64 */
#elif defined(__x86_64__) || defined(__i386__)

#include <stdint.h>
#if defined(_MSC_VER)
Expand Down Expand Up @@ -369,4 +367,17 @@ int parasail_can_use_neon(void)
return 0;
}

#else

/* non-x86, non-ARM, non-PPC */

int parasail_can_use_avx512vbmi() { return 0; }
int parasail_can_use_avx512bw() { return 0; }
int parasail_can_use_avx512f() { return 0; }
int parasail_can_use_avx2() { return 0; }
int parasail_can_use_sse41() { return 0; }
int parasail_can_use_sse2() { return 0; }
int parasail_can_use_altivec() { return 0; }
int parasail_can_use_neon() { return 0; }

#endif

0 comments on commit 3418f9f

Please sign in to comment.