<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2013-09-28 3:57 GMT+04:00 Warren Hunt <span dir="ltr"><<a href="mailto:whunt@google.com" target="_blank" class="cremed">whunt@google.com</a>></span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":10t" class="a3s" style="overflow:hidden">+#ifdef __X86_64__<br>
+static __inline__ __int64 __attribute__((__always_inline__, __nodebug__))<br>
+_InterlockedExchange64(__int64 volatile *_Target, __int64 _Value) {<br>
+  __atomic_exchange(_Target, &_Value, &_Value, 0);<br>
+  return _Value;<br>
+}<br>
+#endif</div></blockquote></div><br>FYI</div><div class="gmail_extra">I think this should be defined on 32-bits too.</div></div>