On 08/06/18 11:33, Mateusz Guzik wrote:
This code is seriously inferior to atomic_fcmpset_long, which happens to
return the found value just like the linux atomic_long_cmpxchg would.

The atomic_cmpset_* primitives should not be used if the target value is to
be inspected.

Hi,

The LinuxKPI has already has few places of atomic_cmpset_* currently.

Can I assume that atomic_fcmpset_* is available for all platforms where atomic_cmpset_* is available?

--HPS
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to