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