We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4c04f6 commit 1778e5bCopy full SHA for 1778e5b
opal/include/opal/sys/sparcv9/atomic.h
@@ -10,6 +10,8 @@
10
* Copyright (c) 2004-2005 The Regents of the University of California.
11
* All rights reserved.
12
* Copyright (c) 2007 Sun Microsystems, Inc. All rights reserverd.
13
+ * Copyright (c) 2016 Research Organization for Information Science
14
+ * and Technology (RIST). All rights reserved.
15
* $COPYRIGHT$
16
*
17
* Additional copyrights may follow
@@ -85,7 +87,7 @@ static inline int opal_atomic_cmpset_32( volatile int32_t *addr,
85
87
{
86
88
/* casa [reg(rs1)] %asi, reg(rs2), reg(rd)
89
- * if (*(reg(rs1)) == reg(rs1) )
90
+ * if (*(reg(rs1)) == reg(rs2) )
91
* swap reg(rd), *(reg(rs1))
92
* else
93
* reg(rd) = *(reg(rs1))
0 commit comments