Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/arch/powerpc/platforms/powernv/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 817 B image not shown  

Quelle  copy-paste.h   Sprache: C

 
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright 2016-17 IBM Corp.
 */

#include <asm/ppc-opcode.h>
#include <asm/reg.h>

/*
 * Copy/paste instructions:
 *
 * copy RA,RB
 * Copy contents of address (RA) + effective_address(RB)
 * to internal copy-buffer.
 *
 * paste RA,RB
 * Paste contents of internal copy-buffer to the address
 * (RA) + effective_address(RB)
 */

static inline int vas_copy(void *crb, int offset)
{
 asm volatile(PPC_COPY(%0, %1)";"
  :
  : "b" (offset), "b" (crb)
  : "memory");

 return 0;
}

static inline int vas_paste(void *paste_address, int offset)
{
 u32 cr;

 cr = 0;
 asm volatile(PPC_PASTE(%1, %2)";"
  "mfocrf %0, 0x80;"
  : "=r" (cr)
  : "b" (offset), "b" (paste_address)
  : "memory""cr0");

 /* We mask with 0xE to ignore SO */
 return (cr >> CR0_SHIFT) & 0xE;
}

Messung V0.5
C=91 H=56 G=75

¤ Dauer der Verarbeitung: 0.15 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.