Skip to content

Commit

Permalink
Merge pull request OpenMathLib#5005 from martin-frbg/evbarm
Browse files Browse the repository at this point in the history
Improve support for NetBSD on arm64 (evbarm)
  • Loading branch information
martin-frbg authored Dec 5, 2024
2 parents 4ba471d + a791912 commit 5dc4d7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions c_check
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ hostarch=`uname -m | sed -e 's/i.86/x86/'`
if [ "$hostos" = "AIX" ] || [ "$hostos" = "SunOS" ]; then
hostarch=`uname -p`
fi
if [ "$hostarch" = "evbarm" ]; then
hostarch=`uname -p`
fi
case "$hostarch" in
amd64) hostarch=x86_64 ;;
arm*) [ "$hostarch" = "arm64" ] || hostarch='arm' ;;
Expand Down
8 changes: 4 additions & 4 deletions cpuid_arm64.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ static char *cpuname_lower[] = {
int get_feature(char *search)
{

#ifdef __linux
#if defined( __linux ) || defined( __NetBSD__ )
FILE *infile;
char buffer[2048], *p,*t;
p = (char *) NULL ;
Expand Down Expand Up @@ -163,7 +163,7 @@ int get_feature(char *search)
int detect(void)
{

#ifdef __linux
#if defined( __linux ) || defined( __NetBSD__ )

FILE *infile;
char buffer[512], *p, *cpu_part = NULL, *cpu_implementer = NULL;
Expand Down Expand Up @@ -314,7 +314,7 @@ void get_cpucount(void)
{
int n=0;

#ifdef __linux
#if defined( __linux ) || defined( __NetBSD__ )
FILE *infile;
char buffer[2048], *p,*t;
p = (char *) NULL ;
Expand Down Expand Up @@ -608,7 +608,7 @@ void get_libname(void)
void get_features(void)
{

#ifdef __linux
#if defined( __linux ) || defined( __NetBSD__ )
FILE *infile;
char buffer[2048], *p,*t;
p = (char *) NULL ;
Expand Down

0 comments on commit 5dc4d7d

Please sign in to comment.