tr1::unordered_set<double> bizarre rounding behavior (x86)
Gabriel Dos Reis
gdr@integrable-solutions.net
Tue Jul 5 15:57:00 GMT 2005
Michael Veksler <VEKSLER@il.ibm.com> writes:
[...]
| > 2. You don't know the answer. In that case you are supposed to file
| > a PR and trust bug-masters and maintainers about the issue.
| >
| > > std::tr1::hash<dobule> is implemented in a very bad way.
| > > it casts double to size_t, which of course does a very poor job on
| big
| > > values (is the result of 1.0e100 cast to size_t defined ?).
| > >
| > >
| > Thanks. Patches welcome, as usual: contributions are certainly
| > encouraged, especially so from IBM - I would say - generally committed
| > to the project in a constructive, high quality, and friendly way.
|
| Sorry, I am not on the gcc team (I am working on constraint solvers rather
| than compilers). I performed this review purely voluntarily.
And it is clearly welcome! I hope more will follow :-)
-- Gaby
More information about the Gcc
mailing list