CWB
|
int find_prime | ( | int | n | ) |
Returns smallest prime >= n.
Returns smallest prime >= n.
n | lower bound for the generated prime. |
References is_prime().
Referenced by cl_new_lexhash(), main(), make_attribute_hash(), and MakeMacroHash().
unsigned int hash_macro | ( | char * | name, |
unsigned int | args | ||
) |
Referenced by MacroHashAdd(), MacroHashDelete(), and MacroHashLookup().
unsigned int hash_string | ( | char * | s | ) |
Computes 32bit hash value for string.
Referenced by att_hash_lookup(), cl_lexhash_check_grow(), and cl_lexhash_find_i().
int is_prime | ( | int | n | ) |
Returns True iff n is a prime.
Returns True iff n is a prime.
n | number to check |
Referenced by find_prime().