solaris_x86.s

来自「postgresql8.3.4源码,开源数据库」· S 代码 · 共 35 行

S
35
字号
/=======================================================================/ solaris_i386.s -- compare and swap for solaris_i386/=======================================================================/ Fortunately the Sun compiler can process cpp conditionals with -P/ '/' is the comment for x86, while '!' is the comment for Sparc	.file   "tas.s"#if defined(__amd64)	.code64#endif	.globl pg_atomic_cas	.type pg_atomic_cas, @function	.section .text, "ax"	.align 16pg_atomic_cas:#if defined(__amd64)	movl       %edx,%eax	lock	cmpxchgl   %esi,(%rdi)#else	movl    4(%esp), %edx	movl    8(%esp), %ecx	movl    12(%esp), %eax	lock	cmpxchgl %ecx, (%edx)#endif	ret	.size pg_atomic_cas, . - pg_atomic_cas

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?