1
0
mirror of https://github.com/golang/go synced 2024-11-26 06:57:56 -07:00

runtime/internal/atomic: drop Cas64 pointer indirection in comments

This commit is contained in:
Mia Zhu 2021-06-28 14:47:20 +08:00 committed by miazhu
parent c95464f0ea
commit d842f5cb3e
5 changed files with 6 additions and 5 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {