Replace assembly coded compare and exchange with GCC intrinsic which works on ARM as well as X86.
Replace assembly coded compare and exchange with GCC intrinsic which works on ARM as well as X86.

dcjm/polyml,dcjm/polyml,dcjm/polyml,polyml/polyml,polyml/polyml,polyml/polyml,dcjm/polyml,polyml/polyml