Talk:Double compare-and-swap
![]() | This article is rated Stub-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||
|
Page Move
[edit]If CAS is compare-and-swap, wouldn't it be better for this page to be called "double compare-and-swap" instead of "Double Compare And Swap"? (Or vice-versa.) Falcotron 14:04, 19 June 2006 (UTC)
- I stumbled across this article and thought exactly the same thing, I have now moved the article to "double compare-and-swap". Rje (talk) 17:49, 25 January 2009 (UTC)
DCAS != CAS2 ?
[edit]as far as i know, while both are "double compare-and-swap" instructions, DCAS and CAS2 are not the same: DCAS works on any two words (i.e. two word-sized operands) and is only actually implemented on Motorola 68020 and 68030 processors, while CAS2 works on two contiguous words as a single operand (i.e. one doubleword-sized operand). of course i might be wrong, or simply it might be the case that different names are used in different contexts causing misunderstanding. while i'm at it, i'll mention intel's CMPXCHG family of instructions, where the sizes of the compare operand and the swap operand can be different (e.g. compare 64 bits and swap 128 bits in the CMP8BXCHG16B instruction on IA64). —Preceding unsigned comment added by 82.50.79.133 (talk) 13:10, 5 April 2008 (UTC)
DCAS not implemented
[edit]An anonymous author removed the statement that DCAS is unlikely to be supported on any modern platform, and as support cited the presence of DWCAS on x86. DWCAS is double-width CAS, and as such cannot substitute for DCAS in theoretical algorithms. I have reinstated the previous text. If any modern processors do provide native DCAS (not just transactional memory a la Rock), please provide a reference. --Chris Purcell (talk) 12:37, 15 February 2009 (UTC)