From owner-svn-src-head@FreeBSD.ORG Tue Jan 10 04:46:34 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5AEA106566C for ; Tue, 10 Jan 2012 04:46:34 +0000 (UTC) (envelope-from pfg@freebsd.org) Received: from nm9-vm0.bullet.mail.sp2.yahoo.com (nm9-vm0.bullet.mail.sp2.yahoo.com [98.139.91.196]) by mx1.freebsd.org (Postfix) with SMTP id A84718FC1A for ; Tue, 10 Jan 2012 04:46:34 +0000 (UTC) Received: from [98.139.91.64] by nm9.bullet.mail.sp2.yahoo.com with NNFMP; 10 Jan 2012 04:46:34 -0000 Received: from [98.139.91.17] by tm4.bullet.mail.sp2.yahoo.com with NNFMP; 10 Jan 2012 04:46:34 -0000 Received: from [127.0.0.1] by omp1017.mail.sp2.yahoo.com with NNFMP; 10 Jan 2012 04:46:34 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 536122.75266.bm@omp1017.mail.sp2.yahoo.com Received: (qmail 60510 invoked by uid 60001); 10 Jan 2012 04:46:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1326170794; bh=gnLrH9jTQA5HPWme6K0y622AaZ9YWXxhCys6ojEYUTQ=; h=X-YMail-OSG:Received:X-RocketYMMF:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ONKQftWlLg4qB4Pd2vixGOrOxv725ne1Vu6eM/upl58tZtzdkWlWsKGPme5FpcsJHgaHuc7j/M7hHlLDyS/DDKIdnKLbw9nulFiB2dd3y4siphGPOJXuishYpN1/fkeelJTfwYtKxxQv6CAqSvAps2Y68BXINomLLhx1OlYcjo0= X-YMail-OSG: pknzSoIVM1lDSq4ATNRIVOlAnpAOUJbdQ9nrEReQWwxynzr 7gWNbKUTMcewkoC7Gde9eb_hyCcffgl0GLNkNWMU1lRKVhFaEtOoUinuOmNk g91YhS_s.Frv15KkYOlNhZxYZD4XcEkqTuJr4IS0Mi8TMz6Es8CKvJyoj4NI 08BCeR_oHU7tJ3gdfiXJMv_Xf5Mtxt2VY8xvx7YzMI3t9oa6GvhQzAgCw8NQ o29Y.5P7ZI82qWG4uE8l3.JXp7KpgtJXo1uv5.BrjF4h1GU2gRSjKrMwzVCJ Rvllq83TtWXDn8ro0bT6J3WEE0rKOVVtrUXQR_DEBXCbqYtrhl4GAAWW3Fcp wFN.Vn.qWAU1A.pNqyGehlRwNJtfHurmL1rG9TUFFEdn0Dm7CGHPbMKCF9_1 _BZii1XKhB1.MVP_Vj1FcQizoHW2yPG_V_NOYIHmuT4v26PmyQtx1wzpwrHe ROeSQn4AD6Dpr5PX8fsMBqEHDXQ-- Received: from [200.118.157.7] by web113503.mail.gq1.yahoo.com via HTTP; Mon, 09 Jan 2012 20:46:33 PST X-RocketYMMF: giffunip X-Mailer: YahooMailClassic/15.0.4 YahooMailWebService/0.8.115.331698 Message-ID: <1326170793.59968.YahooMailClassic@web113503.mail.gq1.yahoo.com> Date: Mon, 9 Jan 2012 20:46:33 -0800 (PST) From: Pedro Giffuni To: John-Mark Gurney In-Reply-To: <20120110040219.GE52468@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r229415 - head/lib/libvgl X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pfg@freebsd.org List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2012 04:46:34 -0000 Hi John;=0A=0A--- Lun 9/1/12, John-Mark Gurney ha scritt= o:=0A...=0A> Pedro F. Giffuni wrote this message=0A> on Tue, Jan 03, 2012 a= t 19:47 +0000:=0A> > +#define SL_SWAP(a,b)=A0 =A0 =A0 =A0=0A> =A0=A0=A0{a^= =3Db; b^=3Da; a^=3Db;}=0A> =0A> Can we replace this w/ a normal swap functi= on?=0A> =0A=0A> Last time I did benchmarking on this ~10 years ago, it was= =0A> slower to use xor instead of using assignments...=0A> =0A=0AI doubt it= 's worth it, the swapping is not critical here and=0Adoing a swap saves a t= emporary variable (not that they are=0Aexpensive either).=0A=0Acheers,=0A= =0APedro.=0A=0A=0A> -- =0A> =A0 John-Mark Gurney=A0=A0=A0=0A> =A0=A0=A0 =A0= =A0=A0 =A0=A0=A0=0A> Voice: +1 415 225 5579=0A> =0A> =A0 =A0=A0=A0"All that= I will do, has been=0A> done, All that I have, has not."=0A>