Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/tools/testing/selftests/bpf/progs/   (Linux Kernel Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 716 B image not shown  

Quelle  test_verif_scale2.c

  Sprache: C
 

// SPDX-License-Identifier: GPL-2.0
// Copyright (c) 2019 Facebook
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#define ATTR __always_inline
#include "test_jhash.h"

SEC("tc")
int balancer_ingress(struct __sk_buff *ctx)
{
 void *data_end = (void *)(long)ctx->data_end;
 void *data = (void *)(long)ctx->data;
 void *ptr;
 int nh_off, i = 0;

 nh_off = 14;

 /* pragma unroll doesn't work on large loops */

#define C do { \
 ptr = data + i; \
 if (ptr + nh_off > data_end) \
  break; \
 ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \
 } while (0);
#define C30 C;C;C;C;C;C;C;C;C;C;C;C;C;C;C;C;C;C;C;C;C;C;C;C;C;C;C;C;C;C;
 C30;C30;C30; /* 90 calls */
 return 0;
}
char _license[] SEC("license") = "GPL";

Messung V0.5 in Prozent
C=94 H=97 G=95

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-08) ¤

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