mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
mesa: glGet: fix indentation of print_table_stats
No functional change. Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Brian Paul <brianp@vmware.com> Reviewed-by: Oliver McFadden <oliver.mcfadden@linux.intel.com>
This commit is contained in:
parent
0c3c77ba17
commit
dee121b885
1 changed files with 9 additions and 9 deletions
|
|
@ -1400,29 +1400,29 @@ print_table_stats(void)
|
|||
|
||||
for (i = 0; i < Elements(table); i++) {
|
||||
if (!table[i])
|
||||
continue;
|
||||
continue;
|
||||
count++;
|
||||
d = &values[table[i]];
|
||||
hash = (d->pname * prime_factor);
|
||||
j = 0;
|
||||
while (1) {
|
||||
if (values[table[hash & mask]].pname == d->pname)
|
||||
break;
|
||||
hash += prime_step;
|
||||
j++;
|
||||
if (values[table[hash & mask]].pname == d->pname)
|
||||
break;
|
||||
hash += prime_step;
|
||||
j++;
|
||||
}
|
||||
|
||||
if (j < 10)
|
||||
collisions[j]++;
|
||||
collisions[j]++;
|
||||
else
|
||||
collisions[10]++;
|
||||
collisions[10]++;
|
||||
}
|
||||
|
||||
printf("number of enums: %d (total %d)\n", count, Elements(values));
|
||||
for (i = 0; i < Elements(collisions) - 1; i++)
|
||||
if (collisions[i] > 0)
|
||||
printf(" %d enums with %d %scollisions\n",
|
||||
collisions[i], i, i == 10 ? "or more " : "");
|
||||
printf(" %d enums with %d %scollisions\n",
|
||||
collisions[i], i, i == 10 ? "or more " : "");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue