xref: /linux/lib/math/prime_numbers_private.h (revision 5e024582f494c6ff5eb2bec5183fd1eb35462500)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #include <linux/types.h>
4 
5 struct 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)
12 typedef void (*primes_fn)(void *, const struct primes *);
13 
14 void with_primes(void *ctx, primes_fn fn);
15 bool slow_is_prime_number(unsigned long x);
16 #endif
17