Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jan 2012 23:48:49 -0500
From:      Eitan Adler <lists@eitanadler.com>
To:        John-Mark Gurney <jmg@funkthat.com>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, "Pedro F. Giffuni" <pfg@freebsd.org>, src-committers@freebsd.org
Subject:   Re: svn commit: r229415 - head/lib/libvgl
Message-ID:  <CAF6rxg=2BKy-_z_hRpX25U4dXhemha49gbajmvERmtkyBNH%2BYw@mail.gmail.com>
In-Reply-To: <20120110040219.GE52468@funkthat.com>
References:  <201201031947.q03JlXnx039684@svn.freebsd.org> <20120110040219.GE52468@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 9, 2012 at 11:02 PM, John-Mark Gurney <jmg@funkthat.com> wrote:
> Last time I did benchmarking on this ~10 years ago, it was slower to
> use xor instead of using assignments...

I'd be shocked if the compiler didn't optimize this away to an XCHG.

-- 
Eitan Adler



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxg=2BKy-_z_hRpX25U4dXhemha49gbajmvERmtkyBNH%2BYw>