File Index
Files and directories
Sign in
FILE

prime_numbers_private.h

File preview with syntax highlighting.

linux-6.19.14/lib/math/prime_numbers_private.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2
 3#include <linux/types.h>
 4
 5struct primes {
 6	struct rcu_head rcu;
 7	unsigned long last, sz;
 8	unsigned long primes[];
 9};
10
11#if IS_ENABLED(CONFIG_PRIME_NUMBERS_KUNIT_TEST)
12typedef void (*primes_fn)(void *, const struct primes *);
13
14void with_primes(void *ctx, primes_fn fn);
15bool slow_is_prime_number(unsigned long x);
16#endif
~/ Read-only file preview.