summaryrefslogtreecommitdiff
path: root/packages/extra/gtk2/glib/gprimes.inc
blob: eddac79c1948cb15b39b62dbc33596c3215973fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{*
 * gprimes.inc
 *
 * depends on gtypes.h
 *}

  { Prime numbers.}

  { This function returns prime numbers spaced by approximately 1.5-2.0
     and is for use in resizing data structures which prefer
     prime-valued sizes.        The closest spaced prime function returns the
     next largest prime, or the highest it knows about which is about
     MAXINT/4.
    }

  function g_spaced_primes_closest(num:guint):guint;cdecl;external gliblib name 'g_spaced_primes_closest';