Re: [Mingw-w64-public] [PATCH] Fix bug in InterlockedOr

2013-05-24 Thread dw
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

Re: [Mingw-w64-public] [PATCH] Fix bug in InterlockedOr

2013-05-24 Thread Václav Zeman
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