gprimes.inc 483 B

12345678910111213141516171819
  1. {*
  2. * gprimes.inc
  3. *
  4. * depends on gtypes.h
  5. *}
  6. { Prime numbers.}
  7. { This function returns prime numbers spaced by approximately 1.5-2.0
  8. and is for use in resizing data structures which prefer
  9. prime-valued sizes. The closest spaced prime function returns the
  10. next largest prime, or the highest it knows about which is about
  11. MAXINT/4.
  12. }
  13. function g_spaced_primes_closest(num:guint):guint;cdecl;external gliblib name 'g_spaced_primes_closest';