This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Atomic floats on x86_64


On 10 November 2014 18:09, Andrew Haley wrote:
> Hmm.  That is reasonable enough, but given that GCC nonstandardly
> allows atomic_store() et al to work on float, why prefer a GCC
> nonstandard builtin?

No reason I can see, especially as atomic_store(&f, 1.0f) works with a
literal as the second argument while __atomic_store(&f, 1.f) doesn't.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]