From owner-cvs-ports@FreeBSD.ORG Thu Sep 8 03:13:10 2011 Return-Path: Delivered-To: cvs-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F691106564A; Thu, 8 Sep 2011 03:13:10 +0000 (UTC) (envelope-from gahr@gahr.no-ip.org) Received: from cpanel05.rubas-s05.net (cpanel05.rubas-s05.net [195.182.222.75]) by mx1.freebsd.org (Postfix) with ESMTP id 0075C8FC16; Thu, 8 Sep 2011 03:13:09 +0000 (UTC) Received: from 175-3.192-178.cust.bluewin.ch ([178.192.3.175] helo=gahr.no-ip.org) by cpanel05.rubas-s05.net with esmtpa (Exim 4.69) (envelope-from ) id 1R1KeD-000142-CU; Wed, 07 Sep 2011 18:06:45 +0200 Received: by gahr.no-ip.org (Postfix, from userid 1001) id F1B3E4505F; Wed, 7 Sep 2011 18:06:44 +0200 (CEST) Date: Wed, 7 Sep 2011 18:06:44 +0200 From: Pietro Cerutti To: Alexey Dokuchaev Message-ID: <20110907160643.GR98648@gahrfit.gahr.ch> References: <201109071436.p87EaDGo097718@repoman.freebsd.org> <20110907155741.GA69663@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="O8/n5iBOhiUtMkxf" Content-Disposition: inline In-Reply-To: <20110907155741.GA69663@FreeBSD.org> X-PGP-Key: 0x9571F78E X-PGP-Fingerprint: 1203 92B5 3919 AF84 9B97 28D6 C0C2 6A98 9571 F78E User-Agent: Mutt/1.5.21 (2010-09-15) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel05.rubas-s05.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gahr.no-ip.org X-Source: X-Source-Args: X-Source-Dir: Cc: cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org Subject: Re: cvs commit: ports/audio/beast Makefile X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gahr@FreeBSD.org List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 03:13:10 -0000 --O8/n5iBOhiUtMkxf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2011-Sep-07, 15:57, Alexey Dokuchaev wrote: > On Wed, Sep 07, 2011 at 02:36:13PM +0000, Pietro Cerutti wrote: > > gahr 2011-09-07 14:36:13 UTC > >=20 > > Modified files: > > audio/beast Makefile=20 > > Log: > > - Unbreak > > - Use sysctl to find out whether SSE is supported >=20 > What's wrong with .if ${MACHINE_CPU:Msse} ? I found out that MACHINE_CPU does not reflect the actual caps of the CPU the process is currently running on. This leads to false negative (no sse in MACHINE_CPU on SSE-capable CPUs). Look at these outputs from a test machine of mine: > make -V MACHINE_CPU i486 > sysctl hw.instruction_sse hw.instruction_sse: 1 > grep ^CPU /var/run/dmesg.boot CPU: Intel(R) Pentium(R) 4 CPU 1.70GHz (1694.54-MHz 686-class CPU) > grep Features /var/run/dmesg.boot Features=3D0x3febfbff Unfortunately, using a sysctl here is the only reliable way I found to determine SSE capabilities. Any suggestions how to do it better is warmly welcome! --=20 Pietro Cerutti The FreeBSD Project gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp --O8/n5iBOhiUtMkxf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk5nlpMACgkQwMJqmJVx9442/ACgnHdJdxUVEAu857kszHdekmUh ExIAniKFemXRZakEgymmaX8Vwb+38mZT =/d1h -----END PGP SIGNATURE----- --O8/n5iBOhiUtMkxf--