Re: [PATCH 0/8] [RFC] Introduce floating point fetch_add builtins

2024-10-02 Thread Jonathan Wakely
gt; > > > From: Jonathan Wakely > Sent: 19 September 2024 3:47 PM > To: Matthew Malcomson > Cc: gcc-patches@gcc.gnu.org ; Joseph Myers > ; Richard Biener > Subject: Re: [PATCH 0/8] [RFC] Introduce floating point fetch_add builtins > >

Re: [PATCH 0/8] [RFC] Introduce floating point fetch_add builtins

2024-10-02 Thread Matthew Malcomson
ecific builtins)? From: Jonathan Wakely Sent: 19 September 2024 3:47 PM To: Matthew Malcomson Cc: gcc-patches@gcc.gnu.org ; Joseph Myers ; Richard Biener Subject: Re: [PATCH 0/8] [RFC] Introduce floating point fetch_add builtins External email: Use caution opening links

Re: [PATCH 0/8] [RFC] Introduce floating point fetch_add builtins

2024-09-19 Thread Joseph Myers
On Thu, 19 Sep 2024, mmalcom...@nvidia.com wrote: > 6) Anything special about floating point maths that I'm tripping up on? Correct atomic operations with floating-point operands should ensure that exceptions raised exactly correspond to the operands for which the operation succeeded, and not t

Re: [PATCH 0/8] [RFC] Introduce floating point fetch_add builtins

2024-09-19 Thread Jonathan Wakely
On Thu, 19 Sept 2024 at 14:12, wrote: > > From: Matthew Malcomson > > Hello, this is an RFC for adding an atomic floating point fetch_add builtin > (and variants) to GCC. The atomic fetch_add operation is defined to work > on the base floating point types in the C++20 standard chapter 31.7.3, an

[PATCH 0/8] [RFC] Introduce floating point fetch_add builtins

2024-09-19 Thread mmalcomson
From: Matthew Malcomson Hello, this is an RFC for adding an atomic floating point fetch_add builtin (and variants) to GCC. The atomic fetch_add operation is defined to work on the base floating point types in the C++20 standard chapter 31.7.3, and extended to work for all cv-unqualified floating