Skip to content

Commit d229f98

Browse files
committed
Adding some more minor space and comments fixes
Fixing some typos and spacing/styling issues. Signed-off-by: Vishwanath Venkatesan <[email protected]>
1 parent 7fd9cdd commit d229f98

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

oshmem/shmem/c/shmem_mcs_lock.c

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
*
99
* $HEADER$
1010
*/
11-
/**
12-
* @file
13-
*/
11+
1412
#include "oshmem_config.h"
1513

1614
#include "oshmem/constants.h"
@@ -37,15 +35,15 @@ struct lock_t {
3735
/** has meaning only on MCSQ_TAIL OWNER */
3836
int tail;
3937
/** 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 */
4139
int next;
4240
};
4341
typedef struct lock_t lock_t;
4442

4543
#define NEXT_MASK 0x7FFFFFFFU
46-
#define SIGNAL_MASK 0x80000000U //Wait signal mask
44+
#define SIGNAL_MASK 0x80000000U /** Wait signal mask */
4745
#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 */
4947
#define SIGNAL(A) (A & SIGNAL_MASK)
5048
#define SET_SIGNAL(A) (A | SIGNAL_MASK)
5149

@@ -75,7 +73,7 @@ _shmem_mcs_set_lock(long *lockp)
7573
* releasing it.
7674
*/
7775
/**
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
7977
* has an impact on performance
8078
*/
8179
value_tmp = NEXT_MASK;

oshmem/shmem/c/shmem_set_lock.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*
1212
* $HEADER$
1313
*/
14+
1415
#include "oshmem_config.h"
1516

1617
#include "oshmem/constants.h"

0 commit comments

Comments
 (0)