From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BoNlM-0006l1-JJ for qemu-devel@nongnu.org; Sat, 24 Jul 2004 10:44:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BoNlL-0006kj-Jn for qemu-devel@nongnu.org; Sat, 24 Jul 2004 10:44:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BoNlL-0006kL-Dq for qemu-devel@nongnu.org; Sat, 24 Jul 2004 10:44:35 -0400 Received: from [63.228.1.57] (helo=gate.crashing.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BoNhO-0005HF-CO for qemu-devel@nongnu.org; Sat, 24 Jul 2004 10:40:30 -0400 Subject: Re: [Qemu-devel] [Patch] Swapping functions for Mac OS X From: Benjamin Herrenschmidt In-Reply-To: <4AE591A8-D7F8-11D8-BD35-000A2796D230@free.fr> References: <4AE591A8-D7F8-11D8-BD35-000A2796D230@free.fr> Content-Type: text/plain Message-Id: <1090679632.3753.0.camel@gaston> Mime-Version: 1.0 Date: Sat, 24 Jul 2004 10:33:52 -0400 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Sat, 2004-07-17 at 09:50, Pierre d'Herbemont wrote: > Hi Fabrice, > > I think it should be quite useful to use the swapping functions on Mac > OS X. However I don't see a huge performance gain with this patch. Ugh ? How cna it be useful to call into library functions why you can use inline assembly ? Actually, if the swap is done on data loaded/stored from/to memory, then you can use the ppc endian swapped load/store instructions Ben.