Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jan 2012 20:02:19 -0800
From:      John-Mark Gurney <jmg@funkthat.com>
To:        "Pedro F. Giffuni" <pfg@FreeBSD.org>
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:  <20120110040219.GE52468@funkthat.com>
In-Reply-To: <201201031947.q03JlXnx039684@svn.freebsd.org>
References:  <201201031947.q03JlXnx039684@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Pedro F. Giffuni wrote this message on Tue, Jan 03, 2012 at 19:47 +0000:
> +#define SL_SWAP(a,b)           {a^=b; b^=a; a^=b;}

Can we replace this w/ a normal swap function?

Last time I did benchmarking on this ~10 years ago, it was slower to
use xor instead of using assignments...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



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