2013-09-28 3:57 GMT+04:00 Warren Hunt <[email protected]>:

> +#ifdef __X86_64__
> +static __inline__ __int64 __attribute__((__always_inline__, __nodebug__))
> +_InterlockedExchange64(__int64 volatile *_Target, __int64 _Value) {
> +  __atomic_exchange(_Target, &_Value, &_Value, 0);
> +  return _Value;
> +}
> +#endif
>

FYI
I think this should be defined on 32-bits too.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to