aboutsummaryrefslogtreecommitdiff
path: root/math/atlas
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2005-10-30 08:00:58 +0000
committerMaho Nakata <maho@FreeBSD.org>2005-10-30 08:00:58 +0000
commit818f3b359e3c61f06e07090b248a9edaf6867b6e (patch)
tree126e47178eab6901e152b006649cc9bfd027c7fd /math/atlas
parentfdf74d2e3f67f096ab21a451c8b682d4f41de5bb (diff)
downloadports-818f3b359e3c61f06e07090b248a9edaf6867b6e.tar.gz
ports-818f3b359e3c61f06e07090b248a9edaf6867b6e.zip
Add cputype of sempron; athlon type CPU
Submitted by: Pedro A M Vazquez <vazquez@iqm.unicamp.br>
Notes
Notes: svn path=/head/; revision=146725
Diffstat (limited to 'math/atlas')
-rw-r--r--math/atlas/files/patch-config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/math/atlas/files/patch-config.c b/math/atlas/files/patch-config.c
index 455f38f38d0a..3ac9303830e7 100644
--- a/math/atlas/files/patch-config.c
+++ b/math/atlas/files/patch-config.c
@@ -94,7 +94,7 @@
}
break;
case LAIA64: /* don't know */
-@@ -2849,14 +2863,32 @@
+@@ -2849,14 +2863,33 @@
if (!CmndOneLine(targ, "sysctl hw.model", ln))
{
if (strstr(ln, "Pentium Pro")) mach = IntPPRO;
@@ -115,6 +115,7 @@
+ else if (strstr(ln, "Opteron(tm)") && sizeof(void *)==8) mach = AmdHammer64;
+ else if (strstr(ln, "AMD Athlon(tm) 64") && sizeof(void *)==4) mach = AmdHammer32;
+ else if (strstr(ln, "AMD Athlon(tm) 64") && sizeof(void *)==8) mach = AmdHammer64;
++ else if (strstr(ln, "Sempron(tm)")) mach = AmdAthlon;
+ else if (strstr(ln, "Athlon(tm)")) mach = AmdAthlon;
else if (strstr(ln, "Athlon")) mach = AmdAthlon;
else if (strstr(ln, "AMD-K7")) mach = AmdAthlon;