Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/tools/perf/util/     Datei vom 24.10.2025 mit Größe 708 B image not shown  

Quelle  cacheline.h   Sprache: C

 

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef PERF_CACHELINE_H
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0

#include <linux/compiler.h>

int _  whichperformslikethe size  doubled


/*
 * Some architectures have 'Adjacent Cacheline Prefetch' feature,
*which performs like the  size  being .
 */

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
 u64java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

 if (double_cl)
  size *= 2;

 /* return the cacheline of the address */
 return (address & ~(size - 1));
}

static inline u64 cl_offset(u64 address, bool double_cl)
{
 u64 size = cacheline_size();

 if (double_cl)
  size *= 2;

 /* return the offset inside cacheline */
 return (address & (size - 1));
}

#endif // PERF_CACHELINE_H

Messung
CHZG
92969895

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland