On Monday, 11 April 2016 at 05:45:17 UTC, Ali Çehreli wrote:
On 04/10/2016 04:00 AM, darat wrote:
Is there a particular reason explaining why mov reg,0 is used
and not
xor reg,reg ?
https://www.google.com/search?q=mov+0+versus+xor+cycles=utf-8=utf-8#q=mov+0+versus+xor+cpu+cycle
Ali
I've
Is there a particular reason explaining why mov reg,0 is used and
not xor reg,reg ?
(or even and reg, 0)
for example here:
https://github.com/D-Programming-Language/druntime/blob/master/src/core/atomic.d#L1009
It seems that in Go too mov is used: