Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
7eb6a6f4
Commit
7eb6a6f4
authored
Aug 13, 2013
by
Dmitriy Vyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync/atomic: fix ARM nomenclature in comments
R=cshapiro CC=golang-dev
https://golang.org/cl/12877043
parent
4be93851
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/pkg/sync/atomic/asm_arm.s
src/pkg/sync/atomic/asm_arm.s
+6
-6
No files found.
src/pkg/sync/atomic/asm_arm.s
View file @
7eb6a6f4
...
...
@@ -13,7 +13,7 @@ TEXT ·armCompareAndSwapUint32(SB),NOSPLIT,$0-13
MOVW
old
+
4
(
FP
),
R2
MOVW
new
+
8
(
FP
),
R3
casloop
:
//
LDREX
and
STREX
were
introduced
in
ARM
6
.
//
LDREX
and
STREX
were
introduced
in
ARM
v
6
.
LDREX
(
R1
),
R0
CMP
R0
,
R2
BNE
casfail
...
...
@@ -40,7 +40,7 @@ TEXT ·armCompareAndSwapUint64(SB),NOSPLIT,$0-21
MOVW
newlo
+
12
(
FP
),
R4
MOVW
newhi
+
16
(
FP
),
R5
cas64loop
:
//
LDREXD
and
STREXD
were
introduced
in
ARM
11
.
//
LDREXD
and
STREXD
were
introduced
in
ARM
v6k
.
LDREXD
(
R1
),
R6
//
loads
R6
and
R7
CMP
R2
,
R6
BNE
cas64fail
...
...
@@ -61,7 +61,7 @@ TEXT ·armAddUint32(SB),NOSPLIT,$0-12
MOVW
addr
+
0
(
FP
),
R1
MOVW
delta
+
4
(
FP
),
R2
addloop
:
//
LDREX
and
STREX
were
introduced
in
ARM
6
.
//
LDREX
and
STREX
were
introduced
in
ARM
v
6
.
LDREX
(
R1
),
R3
ADD
R2
,
R3
STREX
R3
,
(
R1
),
R0
...
...
@@ -80,7 +80,7 @@ TEXT ·armAddUint64(SB),NOSPLIT,$0-20
MOVW
deltalo
+
4
(
FP
),
R2
MOVW
deltahi
+
8
(
FP
),
R3
add64loop
:
//
LDREXD
and
STREXD
were
introduced
in
ARM
11
.
//
LDREXD
and
STREXD
were
introduced
in
ARM
v6k
.
LDREXD
(
R1
),
R4
//
loads
R4
and
R5
ADD.S
R2
,
R4
ADC
R3
,
R5
...
...
@@ -95,7 +95,7 @@ TEXT ·armSwapUint32(SB),NOSPLIT,$0-12
MOVW
addr
+
0
(
FP
),
R1
MOVW
new
+
4
(
FP
),
R2
swaploop
:
//
LDREX
and
STREX
were
introduced
in
ARM
6
.
//
LDREX
and
STREX
were
introduced
in
ARM
v
6
.
LDREX
(
R1
),
R3
STREX
R2
,
(
R1
),
R0
CMP
$
0
,
R0
...
...
@@ -113,7 +113,7 @@ TEXT ·armSwapUint64(SB),NOSPLIT,$0-20
MOVW
newlo
+
4
(
FP
),
R2
MOVW
newhi
+
8
(
FP
),
R3
swap64loop
:
//
LDREXD
and
STREXD
were
introduced
in
ARM
11
.
//
LDREXD
and
STREXD
were
introduced
in
ARM
v6k
.
LDREXD
(
R1
),
R4
//
loads
R4
and
R5
STREXD
R2
,
(
R1
),
R0
//
stores
R2
and
R3
CMP
$
0
,
R0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment