Skip to content
Snippets Groups Projects
Commit 735a9bc4 authored by bonzini's avatar bonzini
Browse files

2004-09-06 Serge Belyshev <belyshev@lubercy.com>

	PR preprocessor/14699
	* symtab.c (ht_dump_statistics): Change type of sum_of_squares
	from size_t to double.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87116 138bc75d-0d04-0410-961f-82ee72b054a4
parent 20bfedf7
No related branches found
No related tags found
No related merge requests found
2004-09-06 Serge Belyshev <belyshev@lubercy.com>
PR preprocessor/14699
* symtab.c (ht_dump_statistics): Change type of sum_of_squares
from size_t to double.
2004-08-28 Andreas Schwab <schwab@suse.de> 2004-08-28 Andreas Schwab <schwab@suse.de>
Andreas Jaeger <aj@suse.de> Andreas Jaeger <aj@suse.de>
......
...@@ -252,8 +252,8 @@ void ...@@ -252,8 +252,8 @@ void
ht_dump_statistics (hash_table *table) ht_dump_statistics (hash_table *table)
{ {
size_t nelts, nids, overhead, headers; size_t nelts, nids, overhead, headers;
size_t total_bytes, longest, sum_of_squares; size_t total_bytes, longest;
double exp_len, exp_len2, exp2_len; double sum_of_squares, exp_len, exp_len2, exp2_len;
hashnode *p, *limit; hashnode *p, *limit;
#define SCALE(x) ((unsigned long) ((x) < 1024*10 \ #define SCALE(x) ((unsigned long) ((x) < 1024*10 \
...@@ -272,7 +272,7 @@ ht_dump_statistics (hash_table *table) ...@@ -272,7 +272,7 @@ ht_dump_statistics (hash_table *table)
size_t n = HT_LEN (*p); size_t n = HT_LEN (*p);
total_bytes += n; total_bytes += n;
sum_of_squares += n * n; sum_of_squares += (double) n * n;
if (n > longest) if (n > longest)
longest = n; longest = n;
nids++; nids++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment