Gentoo Archives: gentoo-commits

From: "Markus Dittrich (markusle)" <markusle@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/lapack-atlas/files: blas-atlas-3.9.1-Core2Duo-detect.patch
Date: Sun, 03 Aug 2008 18:16:55
Message-Id: E1KPi8S-0004cM-Sl@stork.gentoo.org
1 markusle 08/08/03 18:16:52
2
3 Added: blas-atlas-3.9.1-Core2Duo-detect.patch
4 Log:
5 Added patch to improve Core2Duo CPU detection.
6 (Portage version: 2.2_rc5/cvs/Linux 2.6.26-SENTINEL-1 i686)
7
8 Revision Changes Path
9 1.1 sci-libs/lapack-atlas/files/blas-atlas-3.9.1-Core2Duo-detect.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/lapack-atlas/files/blas-atlas-3.9.1-Core2Duo-detect.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/lapack-atlas/files/blas-atlas-3.9.1-Core2Duo-detect.patch?rev=1.1&content-type=text/plain
13
14 Index: blas-atlas-3.9.1-Core2Duo-detect.patch
15 ===================================================================
16 diff -Naur ATLAS/CONFIG/src/backend/archinfo_x86.c ATLAS.new/CONFIG/src/backend/archinfo_x86.c
17 --- ATLAS/CONFIG/src/backend/archinfo_x86.c 2008-07-22 10:32:34.000000000 -0400
18 +++ ATLAS.new/CONFIG/src/backend/archinfo_x86.c 2008-08-02 07:17:09.000000000 -0400
19 @@ -92,11 +92,11 @@
20 */
21 do_cpuid(r, 1);
22 *family = (r[EAX] >> 8) & 0xf; /* base family in bits 11-8 */
23 - if (*family == 0xf || *family == 0) /* extended family is added in */
24 +/* if (*family == 0xf || *family == 0) */ /* extended family is added in */
25 *family += ((r[EAX] >> 20) & 0xff);
26
27 *model = (r[0] >> 4) & 0xf; /* model in bits 7-4 */
28 - if (*model == 0xf) /* extended model is concatenated */
29 + /* if (*model == 0xf) */ /* extended model is concatenated */
30 *model |= ((r[0] >> 12) & 0xf0);
31
32 /*
33 @@ -294,7 +294,7 @@
34 case 14:
35 iret = IntCoreDuo;
36 break;
37 - case 15:
38 + case 15: ; case 23:
39 iret = IntCore2Duo;
40 break;
41 default: