• Home
  • Raw
  • Download

Lines Matching refs:hashsize

179   unsigned int hashsize;  in compute_hashsize()  local
194 for (hashsize = n; hashsize <= XXN * n; hashsize++) in compute_hashsize()
202 if (hashsize >= best_score) in compute_hashsize()
205 bitmap = XNMALLOC (hashsize, char); in compute_hashsize()
206 memset (bitmap, 0, hashsize); in compute_hashsize()
211 unsigned int idx = hashcodes[j] % hashsize; in compute_hashsize()
216 if ((hashsize % 2) == 0) in compute_hashsize()
222 unsigned int incr = 1 + (hashcodes[j] % (hashsize - 2)); in compute_hashsize()
228 if (idx >= hashsize) in compute_hashsize()
229 idx -= hashsize; in compute_hashsize()
244 score = XXS * score + hashsize; in compute_hashsize()
250 if (score > hashsize) in compute_hashsize()
257 for (incr = 1; incr <= hashsize / 2; incr++) in compute_hashsize()
258 if ((hashsize % incr) == 0) in compute_hashsize()
267 for (idx = idx0; idx < hashsize; idx += incr) in compute_hashsize()
289 best_hashsize = hashsize; in compute_hashsize()
315 compute_table_items (message_list_ty *mlp, unsigned int hashsize) in compute_table_items() argument
322 bitmap = XNMALLOC (hashsize, char); in compute_table_items()
323 memset (bitmap, 0, hashsize); in compute_table_items()
329 unsigned int idx = hashcode % hashsize; in compute_table_items()
333 unsigned int incr = 1 + (hashcode % (hashsize - 2)); in compute_table_items()
337 if (idx >= hashsize) in compute_table_items()
338 idx -= hashsize; in compute_table_items()
467 write_lookup_code (FILE *stream, unsigned int hashsize, bool collisions) in write_lookup_code() argument
470 fprintf (stream, " int idx = (hash_val %% %d) << 1;\n", hashsize); in write_lookup_code()
481 hashsize - 2); in write_lookup_code()
484 fprintf (stream, " if (idx >= %d)\n", 2 * hashsize); in write_lookup_code()
485 fprintf (stream, " idx -= %d;\n", 2 * hashsize); in write_lookup_code()
792 unsigned int hashsize; in write_java_code() local
798 hashsize = compute_hashsize (mlp, &collisions); in write_java_code()
802 table_items = compute_table_items (mlp, hashsize); in write_java_code()
839 table_eltype, 2 * hashsize); in write_java_code()
884 write_lookup_code (stream, hashsize, collisions); in write_java_code()
897 write_lookup_code (stream, hashsize, collisions); in write_java_code()
907 2 * hashsize); in write_java_code()
909 fprintf (stream, " return (idx < %d);\n", 2 * hashsize); in write_java_code()
914 2 * hashsize); in write_java_code()