hash policy patch

Paolo Carlini paolo.carlini@oracle.com
Tue Sep 6 21:54:00 GMT 2011


Hi,
> Ok, I let you finalize this part then, indeed long double will be even 
> better.
>
> I had plan on my side to use a '+ 1' on calls to the refactored 
> _M_next_bkt, but I think a ceil should be fine too.
The below is what I'm finishing testing on x86_64-linux multilib and I 
mean to commit later today. Looking forward to the rest of the work in 
split out form...

Thanks!
Paolo.

//////////////////
-------------- next part --------------
2011-09-06  François Dumont  <fdumont@gcc.gnu.org>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/hashtable_policy.h (_Prime_rehash_policy::
	_M_next_bkt): Cast _M_max_load_factor to long double.
	(_Prime_rehash_policy::_M_bkt_for_elements): Use _M_next_bkt.
	(_Prime_rehash_policy::_M_need_rehash): Likewise; cast all
	float quantities to long double.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: p
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20110906/60c118d2/attachment.ksh>


More information about the Libstdc++ mailing list