This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Numeric limits


"Anthony Williams" <anthony_w.geo@yahoo.com> writes:

| I was just looking at the numeric limits stuff, and noticed that
| numeric_limits<>::infinity(), quiet_NaN() and signaling_NaN() are all set to
| return zero for all the floating point types.

There are there just for transition. By no means, are they in their
frozen states.

| 
| On Solaris there is a library (sunmath) that provides functions to obtain these
| values, which can then be used in gen_num_limits.cc to provide them without
| requiring this library.

I can, unfortunately, no longer get gcc (and therefore libstdc++-v3)
built on my solaris boxes (because of HUGE memory usage) -- just tried
this morning, and got seg-fault, sight. So I can't experiment myself.
However, I'm williing to cooperate wiith you to sort these things.

| Would you like the code I've written for gen_num_limits.cc which uses these on
| Solaris?

Yes, definitely.

-- Gaby

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]