Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/arch/s390/include/asm/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 691 B image not shown  

Quelle  rwonce.h   Sprache: C

 
/* SPDX-License-Identifier: GPL-2.0 */

#ifndef __ASM_S390_RWONCE_H
#define __ASM_S390_RWONCE_H

#include <linux/compiler_types.h>

/*
 * Use READ_ONCE_ALIGNED_128() for 128-bit block concurrent (atomic) read
 * accesses. Note that x must be 128-bit aligned, otherwise a specification
 * exception is generated.
 */

#define READ_ONCE_ALIGNED_128(x)   \
({       \
 union {      \
  typeof(x) __x;    \
  __uint128_t val;   \
 } __u;      \
       \
 BUILD_BUG_ON(sizeof(x) != 16);   \
 asm volatile(     \
  " lpq %[val],%[_x]\n"  \
  : [val] "=d" (__u.val)   \
  : [_x] "QS" (x)    \
  : "memory");    \
 __u.__x;     \
})

#include <asm-generic/rwonce.h>

#endif /* __ASM_S390_RWONCE_H */

Messung V0.5
C=91 H=50 G=73

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.