Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0d02ef4

Browse files
committed
Change spaces to tabs, for consistency. (Caused by email cut/paste.)
1 parent18627c5 commit0d02ef4

File tree

2 files changed

+28
-27
lines changed

2 files changed

+28
-27
lines changed

‎src/backend/port/tas/solaris_sparc.s

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@
88

99
#if defined(__sparcv9) || defined(__sparc)
1010

11-
.section".text"
12-
.align8
13-
.skip24
14-
.align4
11+
.section".text"
12+
.align8
13+
.skip24
14+
.align4
1515

16-
.global pg_atomic_cas
16+
.global pg_atomic_cas
1717
pg_atomic_cas:
18-
cas [%o0],%o2,%o1
19-
mov %o1,%o0
20-
retl
21-
nop
22-
.type pg_atomic_cas,2
23-
.size pg_atomic_cas,(.-pg_atomic_cas)
18+
19+
cas [%o0],%o2,%o1
20+
mov %o1,%o0
21+
retl
22+
nop
23+
.type pg_atomic_cas,2
24+
.size pg_atomic_cas,(.-pg_atomic_cas)
2425
#endif

‎src/backend/port/tas/solaris_x86.s

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,29 @@
66

77
/ '/' is the comment for x86, while '!' is the comment for Sparc
88

9-
.file"tas.s"
9+
.file"tas.s"
1010

1111
#if defined(__amd64)
12-
.code64
12+
.code64
1313
#endif
1414

15-
.globl pg_atomic_cas
16-
.type pg_atomic_cas,@function
15+
.globl pg_atomic_cas
16+
.type pg_atomic_cas,@function
1717

18-
.section.text,"ax"
19-
.align16
18+
.section.text,"ax"
19+
.align16
2020

2121
pg_atomic_cas:
2222
#if defined(__amd64)
23-
movl%edx,%eax
24-
lock
25-
cmpxchgl%esi,(%rdi)
23+
movl%edx,%eax
24+
lock
25+
cmpxchgl%esi,(%rdi)
2626
#else
27-
movl4(%esp),%edx
28-
movl8(%esp),%ecx
29-
movl12(%esp),%eax
30-
lock
31-
cmpxchgl%ecx, (%edx)
27+
movl4(%esp),%edx
28+
movl8(%esp),%ecx
29+
movl12(%esp),%eax
30+
lock
31+
cmpxchgl%ecx, (%edx)
3232
#endif
33-
ret
34-
.size pg_atomic_cas, . - pg_atomic_cas
33+
ret
34+
.size pg_atomic_cas, . - pg_atomic_cas

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp