This is the mail archive of the gcc-patches@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: [gomp] Use __sync_* builtins for reduction


On Tue, Oct 11, 2005 at 01:12:55PM -0400, Jakub Jelinek wrote:
> 	* gimplify.c (omp_atomic_operation_p): New function.
> 	(gimplify_omp_atomic): Use it.

I'd prefer you passed the operator and mode, and did the whole
lookup.  This method will always use mutexes on i386, even if
the reduction is PLUS on SImode, which is available as atomics.


r~


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