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

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


Should be fixed by r208699.


2014-05-13 18:03 GMT+04:00 Timur Iskhodzhanov <timurrrr at google.com>:

>
> 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/7a116da3/attachment.html>


More information about the cfe-commits mailing list