You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> E = Atomic{Float64}(10)
Atomic{Float64}(10.0)
julia> atomic_min!(E, 3.0)
3.0
julia> E
Atomic{Float64}(3.0)
atomic_min!(E, 3.0) should return 10.0 (i.e., the old value), not 3.0, as per the documentation. If I change the code to use Int64 then atomic_min() returns the old value (10).
The text was updated successfully, but these errors were encountered:
I originally posted this on Discourse: https://discourse.julialang.org/t/atomic-min-for-floats/35880
Here is the MWM, copied from that post:
atomic_min!(E, 3.0)
should return 10.0 (i.e., the old value), not 3.0, as per the documentation. If I change the code to use Int64 then atomic_min() returns the old value (10).The text was updated successfully, but these errors were encountered: