Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jan 2012 20:46:33 -0800 (PST)
From:      Pedro Giffuni <pfg@freebsd.org>
To:        John-Mark Gurney <jmg@funkthat.com>
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: svn commit: r229415 - head/lib/libvgl
Message-ID:  <1326170793.59968.YahooMailClassic@web113503.mail.gq1.yahoo.com>
In-Reply-To: <20120110040219.GE52468@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi John;=0A=0A--- Lun 9/1/12, John-Mark Gurney <jmg@funkthat.com> 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> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1326170793.59968.YahooMailClassic>