On Sun, Sep 2, 2012 at 1:42 PM, Peter Bigot <big...@acm.org> wrote:
> That is disappointing.  OK.  How about this, then?
>
> #define _ATOMIC_BIC(_dst,_src) do {                                     \
>     __asm__ __volatile__ ("bic\t%0, %1"                                 \
>                           : "=m" (_dst)                                 \
>                           : "g" (_src));                                \
>   } while (0)

Oooh, very nice. This is exactly what I need, but built at the
preprocessor level instead of the compiler level. I tried to do
something similar on my own, but could never get it to work right.
Your version is much better.

-William

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to