This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Atomic floats on x86_64
- From: Andrew Haley <aph at redhat dot com>
- To: NightStrike <nightstrike at gmail dot com>, gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 10 Nov 2014 08:58:55 +0000
- Subject: Re: Atomic floats on x86_64
- Authentication-results: sourceware.org; auth=none
- References: <CAF1jjLsWNjKFacHn8V_fnc73K9mF9u04G554=qmmcqKw4uN6Jw at mail dot gmail dot com>
On 09/11/14 18:56, NightStrike wrote:
> Is it a bug that I can atomically store a float using __atomic_store,
> but not __atomic_store_n? I'd really like to be able to do it without
> the extra layer of indirection and the extra requirement of a temp
> variable that I don't need.
I don't get this. Can you explain a bit more, or provide a test case?
There shouldn't be any loss of performance.
Andrew.