[Issue 12891] add atomicFetchAdd and atomicFetchSub to core.atomic

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Apr 6 22:39:21 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=12891

Jonathan Dunlap <jadit2 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #9 from Jonathan Dunlap <jadit2 at gmail.com> ---
I resolved the issue by replacing the "__traits(isSame, T, V1)" with "is(T ==
V1)".

Okay my branch below seems to pass all the x64 unittests I've made for this. It
should also work for x86, but I haven't tested yet. Would someone want to
benchmark this?

--


More information about the Digitalmars-d-bugs mailing list