r191590 - Implements some of the more commonly used intrinsics in Intrin.h

Timur Iskhodzhanov timurrrr at google.com
Tue May 13 07:03:03 PDT 2014


2013-09-28 3:57 GMT+04:00 Warren Hunt <whunt at google.com>:

> +#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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140513/c0b0c106/attachment.html>


More information about the cfe-commits mailing list