(j3.2006) (SC22WG5.4481) [ukfortran] Added atomic

N.M. Maclaren nmm1
Fri Jun 17 16:54:39 EDT 2011


On Jun 17 2011, Bill Long wrote:
>
>The list of comments on the coarray TR from Rice suggested adding a SWAP 
>atomic subroutine.    The list in 11-200 includes all of the "common" 
>atomic operations except one: atomic andxor. I'm inclined to add that 
>one, which would make SWAP unnecessary. Or we could add both.  For those 
>who are not big amo users...
>
>...
>
>If this is added, is there a need for a separate atomic_swap?

Swapping works reliably and portably when one integer may be negative;
XOR doesn't.

Regards,
Nick.




More information about the J3 mailing list