comparison src/core/ngx_hash.c @ 746:e6faf88152df

fix SIGFPE on alpha
author Igor Sysoev <igor@sysoev.ru>
date Fri, 06 Oct 2006 13:28:19 +0000
parents 1e720b0be7ec
children 8ef04207c84f cacb565c554e
comparison
equal deleted inserted replaced
745:95aa79944291 746:e6faf88152df
164 return NGX_ERROR; 164 return NGX_ERROR;
165 } 165 }
166 166
167 bucket_size = hinit->bucket_size - sizeof(void *); 167 bucket_size = hinit->bucket_size - sizeof(void *);
168 168
169 start = nelts / (bucket_size / (2 * sizeof(void *)) - 1); 169 start = nelts / (bucket_size / (2 * sizeof(void *)));
170 start = start ? start : 1; 170 start = start ? start : 1;
171 171
172 if (hinit->max_size > 10000 && hinit->max_size / nelts < 100) { 172 if (hinit->max_size > 10000 && hinit->max_size / nelts < 100) {
173 start = hinit->max_size - 1000; 173 start = hinit->max_size - 1000;
174 } 174 }