File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
* $HEADER$
10
10
*/
11
- /**
12
- * @file
13
- */
11
+
14
12
#include "oshmem_config.h"
15
13
16
14
#include "oshmem/constants.h"
@@ -37,15 +35,15 @@ struct lock_t {
37
35
/** has meaning only on MCSQ_TAIL OWNER */
38
36
int tail ;
39
37
/** It has meaning on all PEs */
40
- /** The next pointer is a combination of the PE ID and wait signal */
38
+ /** The next pointer is a combination of the PE ID and wait signal */
41
39
int next ;
42
40
};
43
41
typedef struct lock_t lock_t ;
44
42
45
43
#define NEXT_MASK 0x7FFFFFFFU
46
- #define SIGNAL_MASK 0x80000000U // Wait signal mask
44
+ #define SIGNAL_MASK 0x80000000U /** Wait signal mask */
47
45
#define NEXT (A ) (A & NEXT_MASK)
48
- #define GET_PE (P ) (P & NEXT_MASK) // Improve readability
46
+ #define GET_PE (P ) (P & NEXT_MASK) /** Improve readability */
49
47
#define SIGNAL (A ) (A & SIGNAL_MASK)
50
48
#define SET_SIGNAL (A ) (A | SIGNAL_MASK)
51
49
@@ -75,7 +73,7 @@ _shmem_mcs_set_lock(long *lockp)
75
73
* releasing it.
76
74
*/
77
75
/**
78
- * Can make this to be shmem_atomic_set to be safe in non-cc architecutres
76
+ * Can make this to be shmem_atomic_set to be safe in non-cc architectures
79
77
* has an impact on performance
80
78
*/
81
79
value_tmp = NEXT_MASK ;
Original file line number Diff line number Diff line change 11
11
*
12
12
* $HEADER$
13
13
*/
14
+
14
15
#include "oshmem_config.h"
15
16
16
17
#include "oshmem/constants.h"
You can’t perform that action at this time.
0 commit comments