Explorar o código

update code w.r.t coding style

Nathalie Furmento %!s(int64=13) %!d(string=hai) anos
pai
achega
83e4492494
Modificáronse 2 ficheiros con 6 adicións e 3 borrados
  1. 2 1
      include/starpu_task.h
  2. 4 2
      src/datawizard/sort_data_handles.c

+ 2 - 1
include/starpu_task.h

@@ -39,7 +39,8 @@ extern "C"
 #define STARPU_OPENCL	((1ULL)<<6)
 
 /* Codelet types */
-enum starpu_codelet_type {
+enum starpu_codelet_type
+{
 	STARPU_SEQ,
 	STARPU_SPMD,
 	STARPU_FORKJOIN

+ 4 - 2
src/datawizard/sort_data_handles.c

@@ -71,11 +71,13 @@ static int _starpu_compar_handles(const struct starpu_buffer_descr *descrA,
 	struct _starpu_data_state *dataB = descrB->handle;
 
 	/* Perhaps we have the same piece of data */
-	if (dataA == dataB) {
+	if (dataA == dataB)
+	{
 		/* Process write requests first, this is needed for proper
 		 * locking, see _submit_job_enforce_data_deps,
 		 * _starpu_fetch_task_input, and _starpu_push_task_output  */
-		if (descrA->mode & STARPU_W) {
+		if (descrA->mode & STARPU_W)
+		{
 			if (descrB->mode & STARPU_W)
 				/* Both A and B write, take the reader first */
 				if (descrA->mode & STARPU_R)