Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MGNXQ-00033y-RI for mharc-grub-devel@gnu.org; Mon, 15 Jun 2009 21:32:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGNXO-00031I-NH for grub-devel@gnu.org; Mon, 15 Jun 2009 21:32:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGNXK-0002yQ-Hl for grub-devel@gnu.org; Mon, 15 Jun 2009 21:32:34 -0400 Received: from [199.232.76.173] (port=55568 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGNXK-0002yN-E9 for grub-devel@gnu.org; Mon, 15 Jun 2009 21:32:30 -0400 Received: from c60.cesmail.net ([216.154.195.49]:42831) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1MGNXK-0001cV-0L for grub-devel@gnu.org; Mon, 15 Jun 2009 21:32:30 -0400 Received: from unknown (HELO smtprelay2.cesmail.net) ([192.168.1.112]) by c60.cesmail.net with ESMTP; 15 Jun 2009 21:32:25 -0400 Received: from [192.168.0.22] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by smtprelay2.cesmail.net (Postfix) with ESMTPSA id 111FC34C6D for ; Mon, 15 Jun 2009 21:37:35 -0400 (EDT) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: References: Content-Type: text/plain Date: Mon, 15 Jun 2009 21:32:23 -0400 Message-Id: <1245115943.27324.36.camel@mj> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 (2.26.2-1.fc11) Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH 7/18] Don't clobber ebx/rbx in inline assembly when compiling with Apple's CC X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2009 01:32:34 -0000 On Sat, 2009-05-30 at 16:49 +0200, Vladimir 'phcoder' Serbinenko wrote: > +#ifdef APPLE_CC > __asm__ __volatile__ ("xorl %%eax, %%eax\n\t" > - "cpuid":::"%rax", "%rbx", "%rcx", "%rdx"); Why do we need preprocessor conditionals here? What are we winning? I think it's more important to have reusable, well tested and well maintained code that to save two assembly instructions. -- Regards, Pavel Roskin