On 05/20/2013 03:57 AM, dw wrote:
In summary, this patch:
1) Correctly returns the "old" value.
2) Uses builtin function instead of inline asm.
3) Fixes both winnt.h and the crt intrinsic files.
4) Uses intrin-mac.h to avoid duplicating code.
On 5/24/2013 2:43 PM, Václav Zeman wrote:
I thin
On 05/20/2013 03:57 AM, dw wrote:
> There is a bug in the InterlockedOr function (as well as InterlockedAnd,
> InterlockedXor, InterlockedOr64, InterlockedAnd64, InterlockedXor64)
> where they do not return the "old" value as expected, but instead return
> (sort of) the new value. This code illust