diff mbox

[gomp4] small cleanup

Message ID 55F81463.2000404@acm.org
State New
Headers show

Commit Message

Nathan Sidwell Sept. 15, 2015, 12:51 p.m. UTC
I noticed I still had this patch locally, which I had noticed when preparing the 
launch API for trunk.  Now committed to gomp4 branch.

nathan
diff mbox

Patch

2015-09-15  Nathan Sidwell  <nathan@codesourcery.com>

	* oacc-parallel.c (GOACC_parallel_keyed): Use GOMP_DIM constants.

Index: libgomp/oacc-parallel.c
===================================================================
--- libgomp/oacc-parallel.c	(revision 227775)
+++ libgomp/oacc-parallel.c	(working copy)
@@ -137,7 +137,7 @@  GOACC_parallel_keyed (int device, void (
   splay_tree_key tgt_fn_key;
   void (*tgt_fn);
   int async = GOMP_ASYNC_SYNC;
-  unsigned dims[3];
+  unsigned dims[GOMP_DIM_MAX];
   unsigned tag;
 
   memset (dims, 0, sizeof (dims));
@@ -197,8 +197,8 @@  GOACC_parallel_keyed (int device, void (
 	  {
 	    unsigned mask = GOMP_LAUNCH_OP (tag);
 
-	    for (i = 0; i != 3; i++)
-	      if (mask & (1 << i)) /* FIXME: move to gomp-constants. */
+	    for (i = 0; i != GOMP_DIM_MAX; i++)
+	      if (mask & GOMP_DIM_MASK (i))
 		dims[i] = va_arg (ap, unsigned);
 	  }
 	  break;