prime_numbers_private.h 359 B

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