mirror of
https://github.com/golang/go
synced 2024-11-02 09:28:34 +00:00
runtime/internal/atomic: drop Cas64 pointer indirection in comments
This commit is contained in:
parent
c95464f0ea
commit
d842f5cb3e
5 changed files with 6 additions and 5 deletions
|
@ -37,7 +37,7 @@ TEXT ·Cas(SB),NOSPLIT,$0-17
|
|||
|
||||
// bool ·Cas64(uint64 *val, uint64 old, uint64 new)
|
||||
// Atomically:
|
||||
// if(*val == *old){
|
||||
// if(*val == old){
|
||||
// *val = new;
|
||||
// return 1;
|
||||
// } else {
|
||||
|
|
|
@ -192,7 +192,7 @@ ok:
|
|||
|
||||
// bool ·Cas64(uint64 *ptr, uint64 old, uint64 new)
|
||||
// Atomically:
|
||||
// if(*val == *old){
|
||||
// if(*val == old){
|
||||
// *val = new;
|
||||
// return 1;
|
||||
// } else {
|
||||
|
|
|
@ -37,7 +37,7 @@ cas_fail:
|
|||
|
||||
// bool cas64(uint64 *ptr, uint64 old, uint64 new)
|
||||
// Atomically:
|
||||
// if(*val == *old){
|
||||
// if(*val == old){
|
||||
// *val = new;
|
||||
// return 1;
|
||||
// } else {
|
||||
|
|
|
@ -107,7 +107,7 @@ cas_fail:
|
|||
|
||||
// bool ·Cas64(uint64 *ptr, uint64 old, uint64 new)
|
||||
// Atomically:
|
||||
// if(*val == *old){
|
||||
// if(*val == old){
|
||||
// *val = new;
|
||||
// return 1;
|
||||
// } else {
|
||||
|
|
|
@ -30,8 +30,9 @@
|
|||
|
||||
#include "textflag.h"
|
||||
|
||||
// func Cas(ptr *uint64, old, new uint64) bool
|
||||
// Atomically:
|
||||
// if(*val == *old){
|
||||
// if(*val == old){
|
||||
// *val = new;
|
||||
// return 1;
|
||||
// } else {
|
||||
|
|
Loading…
Reference in a new issue