mirror of
https://github.com/postgres/postgres.git
synced 2025-05-01 01:04:50 +03:00
Change spaces to tabs, for consistency. (Caused by email cut/paste.)
This commit is contained in:
parent
18627c5531
commit
0d02ef4be4
@ -8,17 +8,18 @@
|
|||||||
|
|
||||||
#if defined(__sparcv9) || defined(__sparc)
|
#if defined(__sparcv9) || defined(__sparc)
|
||||||
|
|
||||||
.section ".text"
|
.section ".text"
|
||||||
.align 8
|
.align 8
|
||||||
.skip 24
|
.skip 24
|
||||||
.align 4
|
.align 4
|
||||||
|
|
||||||
.global pg_atomic_cas
|
.global pg_atomic_cas
|
||||||
pg_atomic_cas:
|
pg_atomic_cas:
|
||||||
cas [%o0],%o2,%o1
|
|
||||||
mov %o1,%o0
|
cas [%o0],%o2,%o1
|
||||||
retl
|
mov %o1,%o0
|
||||||
nop
|
retl
|
||||||
.type pg_atomic_cas,2
|
nop
|
||||||
.size pg_atomic_cas,(.-pg_atomic_cas)
|
.type pg_atomic_cas,2
|
||||||
|
.size pg_atomic_cas,(.-pg_atomic_cas)
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,29 +6,29 @@
|
|||||||
|
|
||||||
/ '/' is the comment for x86, while '!' is the comment for Sparc
|
/ '/' is the comment for x86, while '!' is the comment for Sparc
|
||||||
|
|
||||||
.file "tas.s"
|
.file "tas.s"
|
||||||
|
|
||||||
#if defined(__amd64)
|
#if defined(__amd64)
|
||||||
.code64
|
.code64
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
.globl pg_atomic_cas
|
.globl pg_atomic_cas
|
||||||
.type pg_atomic_cas, @function
|
.type pg_atomic_cas, @function
|
||||||
|
|
||||||
.section .text, "ax"
|
.section .text, "ax"
|
||||||
.align 16
|
.align 16
|
||||||
|
|
||||||
pg_atomic_cas:
|
pg_atomic_cas:
|
||||||
#if defined(__amd64)
|
#if defined(__amd64)
|
||||||
movl %edx,%eax
|
movl %edx,%eax
|
||||||
lock
|
lock
|
||||||
cmpxchgl %esi,(%rdi)
|
cmpxchgl %esi,(%rdi)
|
||||||
#else
|
#else
|
||||||
movl 4(%esp), %edx
|
movl 4(%esp), %edx
|
||||||
movl 8(%esp), %ecx
|
movl 8(%esp), %ecx
|
||||||
movl 12(%esp), %eax
|
movl 12(%esp), %eax
|
||||||
lock
|
lock
|
||||||
cmpxchgl %ecx, (%edx)
|
cmpxchgl %ecx, (%edx)
|
||||||
#endif
|
#endif
|
||||||
ret
|
ret
|
||||||
.size pg_atomic_cas, . - pg_atomic_cas
|
.size pg_atomic_cas, . - pg_atomic_cas
|
||||||
|
Loading…
x
Reference in New Issue
Block a user