🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #165

Re: Performance of xchg reg,reg

#165
From: Lawrence D’Oliveiro
Date: Sat, 17 Oct 2026 05:46
10 lines
1692 bytes
On Fri, 16 Oct 2026 09:47:39 -0400, EricP wrote:

> There is also the xor swap which doesn't need an extra register
>
>    xor rax,rbx
>    xor rbx,rax
>    xor rax,rbx

It's a clever trick from the old days, but not really
performance-oriented ...
Technical Details
Message-ID: <11av23o$3ubmb$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <2026Oct13.104347@mips.complang.tuwien.ac.at> <11ami2v$11dqu$3@dont-email.me> <2026Oct14.090023@mips.complang.tuwien.ac.at> <1792017353-5857@newsgrouper.org> <2026Oct15.080534@mips.complang.tuwien.ac.at> <2026Oct15.090653@mips.complang.tuwien.ac.at> <2WpAS.163763$Zbg.15006@fx35.iad>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D’Oliveiro <ldo@nz.invalid>
Newsgroups: comp.arch
Subject: Re: Performance of xchg reg,reg
Date: Sat, 17 Oct 2026 05:46:32 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <11av23o$3ubmb$1@dont-email.me>
References: <2026Oct13.104347@mips.complang.tuwien.ac.at>
	<11ami2v$11dqu$3@dont-email.me>
	<2026Oct14.090023@mips.complang.tuwien.ac.at>
	<1792017353-5857@newsgrouper.org>
	<2026Oct15.080534@mips.complang.tuwien.ac.at>
	<2026Oct15.090653@mips.complang.tuwien.ac.at>
	<2WpAS.163763$Zbg.15006@fx35.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 17 Oct 2026 05:46:32 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="4140747"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18izAp2YJX3faV6IsDyCqxN"; posting-host="4f11af1e1f4746de88c5997e7942d26e"
User-Agent: Pan/0.165 (Kostiantynivka)
Cancel-Lock: sha1:K60PRsatMHj8VrcTM9M6j1EEuVk= sha256:X4ESvO8FZeB5yyQeI8znQpZjLEVfmaZqPVpELFOF584=
	sha1:IgWV+JyQBpTnNURvFRwq+9fXP70= sha256:mEPBZm8fzzrYLD3Q+jngn2pOKxLBkWH01n1Aq96FOUQ=