Skip to content

Commit

Permalink
Added curly braces in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhavdogra committed Mar 1, 2025
1 parent 039b3eb commit b7cd60c
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/internal/runtime/atomic/atomic_386.s
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// return 1;
// }else
// return 0;
// }
TEXT ·Cas(SB), NOSPLIT, $0-13
MOVL ptr+0(FP), BX
MOVL old+4(FP), AX
Expand Down
2 changes: 2 additions & 0 deletions src/internal/runtime/atomic/atomic_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ TEXT ·Loadint64(SB), NOSPLIT, $0-16
// return 1;
// } else
// return 0;
// }
TEXT ·Cas(SB),NOSPLIT,$0-17
MOVQ ptr+0(FP), BX
MOVL old+8(FP), AX
Expand Down Expand Up @@ -59,6 +60,7 @@ TEXT ·Cas64(SB), NOSPLIT, $0-25
// return 1;
// } else
// return 0;
// }
TEXT ·Casp1(SB), NOSPLIT, $0-25
MOVQ ptr+0(FP), BX
MOVQ old+8(FP), AX
Expand Down
1 change: 1 addition & 0 deletions src/internal/runtime/atomic/atomic_arm.s
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// return 1;
// }else
// return 0;
// }
//
// To implement ·cas in sys_$GOOS_arm.s
// using the native instructions, use:
Expand Down
1 change: 1 addition & 0 deletions src/internal/runtime/atomic/atomic_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ load_store_loop:
// return 1;
// } else
// return 0;
// }
TEXT ·Cas(SB), NOSPLIT, $0-17
MOVD ptr+0(FP), R0
MOVW old+8(FP), R1
Expand Down
2 changes: 2 additions & 0 deletions src/internal/runtime/atomic/atomic_loong64.s
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// return 1;
// } else
// return 0;
// }
TEXT ·Cas(SB), NOSPLIT, $0-17
MOVV ptr+0(FP), R4
MOVW old+8(FP), R5
Expand Down Expand Up @@ -126,6 +127,7 @@ TEXT ·Xaddint64(SB), NOSPLIT, $0-24
// return 1;
// } else
// return 0;
// }
TEXT ·Casp1(SB), NOSPLIT, $0-25
JMP ·Cas64(SB)

Expand Down
2 changes: 2 additions & 0 deletions src/internal/runtime/atomic/atomic_mips64x.s
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// return 1;
// } else
// return 0;
// }
TEXT ·Cas(SB), NOSPLIT, $0-17
MOVV ptr+0(FP), R1
MOVW old+8(FP), R2
Expand Down Expand Up @@ -110,6 +111,7 @@ TEXT ·Xaddint64(SB), NOSPLIT, $0-24
// return 1;
// } else
// return 0;
// }
TEXT ·Casp1(SB), NOSPLIT, $0-25
JMP ·Cas64(SB)

Expand Down
1 change: 1 addition & 0 deletions src/internal/runtime/atomic/atomic_mipsx.s
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// return 1;
// } else
// return 0;
// }
TEXT ·Cas(SB),NOSPLIT,$0-13
MOVW ptr+0(FP), R1
MOVW old+4(FP), R2
Expand Down
2 changes: 2 additions & 0 deletions src/internal/runtime/atomic/atomic_ppc64x.s
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ TEXT ·LoadAcq64(SB),NOSPLIT|NOFRAME,$-8-16
// return 1;
// } else
// return 0;
// }
TEXT ·Cas(SB), NOSPLIT, $0-17
MOVD ptr+0(FP), R3
MOVWZ old+8(FP), R4
Expand Down Expand Up @@ -203,6 +204,7 @@ TEXT ·Xaddint64(SB), NOSPLIT, $0-24
// return 1;
// } else
// return 0;
// }
TEXT ·Casp1(SB), NOSPLIT, $0-25
BR ·Cas64(SB)

Expand Down
1 change: 1 addition & 0 deletions src/internal/runtime/atomic/sys_nonlinux_arm.s
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// return 1;
// }else
// return 0;
// }
TEXT ·Cas(SB),NOSPLIT,$0
JMP ·armcas(SB)

Expand Down

0 comments on commit b7cd60c

Please sign in to comment.