Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/scripts/gdb/linux/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 636 B image not shown  

Quelle  xarray.py   Sprache: Python

 
# SPDX-License-Identifier: GPL-2.0
#
#  Xarray helpers
#
# Copyright (c) 2025 Broadcom
#
# Authors:
#  Florian Fainelli <florian.fainelli@broadcom.com>

import gdb

from linux import utils
from linux import constants

def xa_is_internal(entry):
    ulong_type = utils.get_ulong_type()
    return ((entry.cast(ulong_type) & 3) == 2)

def xa_mk_internal(v):
    return ((v << 2) | 2)

def xa_is_zero(entry):
    ulong_type = utils.get_ulong_type()
    return entry.cast(ulong_type) == xa_mk_internal(257)

def xa_is_node(entry):
    ulong_type = utils.get_ulong_type()
    return xa_is_internal(entry) and (entry.cast(ulong_type) > 4096)

Messung V0.5
C=72 H=100 G=86

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© 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.