summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2008-08-03 18:16:52 +0000
committerMarkus Dittrich <markusle@gentoo.org>2008-08-03 18:16:52 +0000
commit8d57efd7fa019c1edd88ba429394e5741052cae0 (patch)
treea4edfdcd8dc5dcc583380f666422fac11c9ba3d3 /sci-libs/lapack-atlas/files
parentDrop yahoo USE flag. (diff)
downloadhistorical-8d57efd7fa019c1edd88ba429394e5741052cae0.tar.gz
historical-8d57efd7fa019c1edd88ba429394e5741052cae0.tar.bz2
historical-8d57efd7fa019c1edd88ba429394e5741052cae0.zip
Added patch to improve Core2Duo CPU detection.
Package-Manager: portage-2.2_rc5/cvs/Linux 2.6.26-SENTINEL-1 i686
Diffstat (limited to 'sci-libs/lapack-atlas/files')
-rw-r--r--sci-libs/lapack-atlas/files/blas-atlas-3.9.1-Core2Duo-detect.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/sci-libs/lapack-atlas/files/blas-atlas-3.9.1-Core2Duo-detect.patch b/sci-libs/lapack-atlas/files/blas-atlas-3.9.1-Core2Duo-detect.patch
new file mode 100644
index 000000000000..ab3ccd6ce990
--- /dev/null
+++ b/sci-libs/lapack-atlas/files/blas-atlas-3.9.1-Core2Duo-detect.patch
@@ -0,0 +1,26 @@
+diff -Naur ATLAS/CONFIG/src/backend/archinfo_x86.c ATLAS.new/CONFIG/src/backend/archinfo_x86.c
+--- ATLAS/CONFIG/src/backend/archinfo_x86.c 2008-07-22 10:32:34.000000000 -0400
++++ ATLAS.new/CONFIG/src/backend/archinfo_x86.c 2008-08-02 07:17:09.000000000 -0400
+@@ -92,11 +92,11 @@
+ */
+ do_cpuid(r, 1);
+ *family = (r[EAX] >> 8) & 0xf; /* base family in bits 11-8 */
+- if (*family == 0xf || *family == 0) /* extended family is added in */
++/* if (*family == 0xf || *family == 0) */ /* extended family is added in */
+ *family += ((r[EAX] >> 20) & 0xff);
+
+ *model = (r[0] >> 4) & 0xf; /* model in bits 7-4 */
+- if (*model == 0xf) /* extended model is concatenated */
++ /* if (*model == 0xf) */ /* extended model is concatenated */
+ *model |= ((r[0] >> 12) & 0xf0);
+
+ /*
+@@ -294,7 +294,7 @@
+ case 14:
+ iret = IntCoreDuo;
+ break;
+- case 15:
++ case 15: ; case 23:
+ iret = IntCore2Duo;
+ break;
+ default: