Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postgres/src/backend/port/tas/   (Postgres Database Version 18.4©)  Datei vom 11.4.2026 mit Größe 946 B image not shown  

Quelle  sunstudio_x86.s

  Sprache: Sparc
 

/-------------------------------------------------------------------------
/
/ sunstudio_x86.s
/   compare and swap for Sun Studio on x86
/
/ Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
/ Portions Copyright (c) 1994, Regents of the University of California
/
/ IDENTIFICATION
/   src/backend/port/tas/sunstudio_x86.s
/
/-------------------------------------------------------------------------

/ 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 16

pg_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

Messung V0.5 in Prozent
C=92 H=91 G=91

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-08-10) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.